Parent

Methods

DataMapper::Property::ParanoidDateTime

Public Instance Methods

bind() click to toggle source

@api private

    # File lib/dm-types/paranoid_datetime.rb, line 9
 9:       def bind
10:         property_name = name.inspect
11: 
12:         model.class_eval           include DataMapper::Types::Paranoid::Base          set_paranoid_property(#{property_name}) { ::DateTime.now }          default_scope(#{repository_name.inspect}).update(#{property_name} => nil), __FILE__, __LINE__ + 1
13:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.