Skip to content

Commit

Permalink
Changed with_deleted from self.unscoped.where() to self.unscoped.relo…
Browse files Browse the repository at this point in the history
…ad - tests pass now
  • Loading branch information
h0jeZvgoxFepBQ2C authored and goncalossilva committed Sep 17, 2010
1 parent 5f3f1f8 commit e7dd9f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails3_acts_as_paranoid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def acts_as_paranoid(options = {})
class << self
def with_deleted
self.unscoped.where() # ugly, but it re-fetches the data (no caching)
self.unscoped.reload
end
def only_deleted
Expand Down

0 comments on commit e7dd9f5

Please sign in to comment.