Rails 4 upgrade

This commit is contained in:
Sam
2014-05-08 14:47:54 +10:00
parent 31c575687b
commit cec18aba3f
2 changed files with 42 additions and 41 deletions
+1 -5
View File
@@ -15,11 +15,7 @@ module Trashable
#
# with this in place Post.limit(10).with_deleted, will work as expected
#
scope = if rails_master?
self.all
else
self.all.with_default_scope
end
scope = self.all
scope.where_values.delete(with_deleted_scope_sql)
scope