Commit e3a8f93d by Sergey Alekseev

This has been removed and should no longer exist.
https://github.com/radar/paranoia/pull/192#discussion_r24884921
parent d252fabd
......@@ -82,16 +82,6 @@ module Paranoia
end
end
# As of Rails 4.1.0 +destroy!+ will no longer remove the record from the db
# unless you touch the paranoia column before.
# We need to override it here otherwise children records might be removed
# when they shouldn't
if ActiveRecord::VERSION::STRING >= "4.1"
def destroy!
destroyed? ? super : destroy || raise(ActiveRecord::RecordNotDestroyed)
end
end
def delete
touch_paranoia_column
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