Module: DataMapper::Types::Paranoid::ClassMethods

Defined in:
lib/dm-types/paranoid/base.rb

Overview

module Base

Instance Method Summary collapse

Instance Method Details

#paranoid_propertiesObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



47
48
49
# File 'lib/dm-types/paranoid/base.rb', line 47

def paranoid_properties
  @paranoid_properties
end

#set_paranoid_property(name, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



52
53
54
# File 'lib/dm-types/paranoid/base.rb', line 52

def set_paranoid_property(name, &block)
  paranoid_properties[name] = block
end

#with_deletedObject



42
43
44
# File 'lib/dm-types/paranoid/base.rb', line 42

def with_deleted
  with_exclusive_scope({}) { block_given? ? yield : all }
end