Commit 7d7fc17b by Ryan Bigg

Remove call to update_column deleted_at that was 'deleting' things before their time

parent dcc2ab4f
...@@ -29,7 +29,6 @@ module Paranoia ...@@ -29,7 +29,6 @@ module Paranoia
def delete def delete
return if new_record? or destroyed? return if new_record? or destroyed?
update_column :deleted_at, Time.now
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