Commit 17acf450 by Weston Ganger

added without_default_scope option

parent f180fe6f
......@@ -219,7 +219,10 @@ class ActiveRecord::Base
def self.paranoia_scope
where(paranoia_column => paranoia_sentinel_value)
end
default_scope { paranoia_scope }
unless options[:without_default_scope]
default_scope { paranoia_scope }
end
before_restore {
self.class.notify_observers(:before_restore, self) if self.class.respond_to?(:notify_observers)
......
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