Commit c117b412 by John Hawthorn

Remove persisted?

We shouldn't be overriding this. soft-deleted objects are still
persisted.
parent a6751886
...@@ -210,13 +210,6 @@ class ActiveRecord::Base ...@@ -210,13 +210,6 @@ class ActiveRecord::Base
def self.paranoid? ; false ; end def self.paranoid? ; false ; end
def paranoid? ; self.class.paranoid? ; end def paranoid? ; self.class.paranoid? ; end
# Override the persisted method to allow for the paranoia gem.
# If a paranoid record is selected, then we only want to check
# if it's a new record, not if it is "destroyed".
def persisted?
paranoid? ? !new_record? : super
end
private private
def paranoia_column def paranoia_column
......
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