Commit 4004bd5e by John Hawthorn

Simplify default_sentinel_value

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