Commit 38ca4c58

mo k <mo@mokhan.ca>
2013-01-21 03:55:34
show newest tutorials first.
1 parent a47f640
Changed files (1)
app
app/models/tutorial.rb
@@ -3,6 +3,8 @@ class Tutorial < ActiveRecord::Base
   belongs_to :user
   acts_as_taggable
 
+  default_scope order("created_at DESC")
+
   def to_param
     "#{id}-#{heading.gsub(/[^a-z0-9]+/i, '-')}"
   end