summaryrefslogtreecommitdiff
path: root/app/models/tutorial.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-07-25 21:26:02 -0600
committermo khan <mo@mokhan.ca>2013-07-25 21:26:02 -0600
commit926258eeccf0dba069f6eb318a225f62231a6166 (patch)
tree5eb368b28229d59c003b483a6336cb2769ae4927 /app/models/tutorial.rb
parente51b50a4348e0e6513aa01cdfbf5d5894c440f17 (diff)
start to upgrade to rails 4
Diffstat (limited to 'app/models/tutorial.rb')
-rw-r--r--app/models/tutorial.rb2
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, '-')}"