Commit 897e25a7 by Tony Byrne

Don't require a model to be valid before soft destroying / deleting it.

parent 14d131a1
...@@ -10,7 +10,7 @@ module Paranoia ...@@ -10,7 +10,7 @@ module Paranoia
def destroy def destroy
_run_destroy_callbacks _run_destroy_callbacks
self[:deleted_at] ||= Time.now self[:deleted_at] ||= Time.now
self.save self.save(:validate => false)
end end
alias :delete :destroy alias :delete :destroy
......
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