Commit fef2314c by John Hawthorn

Revert "Simplify default_sentinel_value"

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