Commit dd8b8e12 by Ryan Bigg

Fix double destroy test

parent 7d7fc17b
...@@ -28,7 +28,7 @@ module Paranoia ...@@ -28,7 +28,7 @@ module Paranoia
end end
def delete def delete
return if new_record? or destroyed? return if new_record?
destroyed? ? destroy! : update_column(:deleted_at, Time.now) destroyed? ? destroy! : update_column(:deleted_at, Time.now)
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