Skip to content

Commit

Permalink
delete_all! should not remove all default_scopes, only the paranoid.
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckg committed Feb 16, 2012
1 parent 129570f commit 016300b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails3_acts_as_paranoid.rb
Expand Up @@ -70,7 +70,7 @@ def only_deleted
end

def delete_all!(conditions = nil)
self.unscoped.delete_all!(conditions)
without_paranoid_default_scope.delete_all!(conditions)
end

def delete_all(conditions = nil)
Expand Down

0 comments on commit 016300b

Please sign in to comment.