Skip to content

Commit

Permalink
Update picture.rb
Browse files Browse the repository at this point in the history
Fix default_scope for use in Rails 4 (Support for calling #default_scope without a block is removed)
  • Loading branch information
howells committed Jun 5, 2014
1 parent f626381 commit ced697d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/activeadmin_settings/picture.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Picture < ActiveRecord::Base
include PictureMethods

# Scopes
default_scope order('created_at desc')
default_scope { order('created_at desc') }
end
end
end

0 comments on commit ced697d

Please sign in to comment.