module DataMapper::Types::Paranoid::ClassMethods
Public Instance Methods
inherited(model)
click to toggle source
Calls superclass method
# File lib/dm-types/paranoid/base.rb, line 33 def inherited(model) model.instance_variable_set(:@paranoid_properties, @paranoid_properties.dup) super end
paranoid_properties()
click to toggle source
@api private
# File lib/dm-types/paranoid/base.rb, line 44 def paranoid_properties @paranoid_properties end
set_paranoid_property(name, &block)
click to toggle source
@api private
# File lib/dm-types/paranoid/base.rb, line 49 def set_paranoid_property(name, &block) paranoid_properties[name] = block end
with_deleted() { |: all| ... }
click to toggle source
@api public
# File lib/dm-types/paranoid/base.rb, line 39 def with_deleted with_exclusive_scope({}) { block_given? ? yield : all } end