Commit 4004bd5e by John Hawthorn

Simplify default_sentinel_value

parent df804fc2
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
def self.default_sentinel_value=(val) mattr_accessor :default_sentinel_value
@@default_sentinel_value = val self.default_sentinel_value = nil
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