Commit fef2314c by John Hawthorn

Revert "Simplify default_sentinel_value"

This reverts commit 4004bd5e.
parent 4004bd5e
require 'active_record' unless defined? ActiveRecord require 'active_record' unless defined? ActiveRecord
module Paranoia module Paranoia
@@default_sentinel_value = nil
# Change default_sentinel_value in a rails initilizer # Change default_sentinel_value in a rails initilizer
mattr_accessor :default_sentinel_value def self.default_sentinel_value=(val)
self.default_sentinel_value = nil @@default_sentinel_value = val
end
def self.default_sentinel_value
@@default_sentinel_value
end
def self.included(klazz) def self.included(klazz)
klazz.extend Query klazz.extend Query
......
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