Commit 4c29b159

mo k <m@mokhan.ca>
2012-01-06 04:30:16
set default scope on creation to load most recent first.
1 parent 9c089f2
Changed files (1)
app
app/models/creation.rb
@@ -11,6 +11,8 @@ class Creation < ActiveRecord::Base
   attr_accessor :crop_x, :crop_y, :crop_h, :crop_w
   after_update :reprocess_image, :if => :cropping?
 
+  default_scope order("created_at DESC")
+
   define_index do
     indexes :name, :sortable => true
     indexes story