Commit 56e0f47e by John Hawthorn

Simplify destroy!

parent d88f3b27
...@@ -70,7 +70,7 @@ module Paranoia ...@@ -70,7 +70,7 @@ module Paranoia
# when they shouldn't # when they shouldn't
if ActiveRecord::VERSION::STRING >= "4.1" if ActiveRecord::VERSION::STRING >= "4.1"
def destroy! def destroy!
paranoia_destroyed? ? super : destroy || raise(ActiveRecord::RecordNotDestroyed) destroy || raise(ActiveRecord::RecordNotDestroyed)
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment