mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 05:25:16 -05:00
Rails 4 upgrade
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user