diff options
| author | mo khan <mo@mokhan.ca> | 2013-07-25 21:26:02 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-07-25 21:26:02 -0600 |
| commit | 926258eeccf0dba069f6eb318a225f62231a6166 (patch) | |
| tree | 5eb368b28229d59c003b483a6336cb2769ae4927 /app/models/tutorial.rb | |
| parent | e51b50a4348e0e6513aa01cdfbf5d5894c440f17 (diff) | |
start to upgrade to rails 4
Diffstat (limited to 'app/models/tutorial.rb')
| -rw-r--r-- | app/models/tutorial.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/tutorial.rb b/app/models/tutorial.rb index 311ccc64..822cbbdd 100644 --- a/app/models/tutorial.rb +++ b/app/models/tutorial.rb @@ -4,7 +4,7 @@ class Tutorial < ActiveRecord::Base belongs_to :user acts_as_taggable - default_scope order("created_at DESC") + default_scope { order("created_at DESC") } def to_param "#{id}-#{heading.gsub(/[^a-z0-9]+/i, '-')}" |
