Methods

DataMapper::Property::DirtyMinder

Public Instance Methods

set!(resource, value) click to toggle source

Catch any direct assignment (#), and any Resource#reload (set!).

     # File lib/dm-types/support/dirty_minder.rb, line 150
150:       def set!(resource, value)
151:         hook_value(resource, value) unless value.kind_of? Hooker
152:         super
153:       end

Private Instance Methods

hook_value(resource, value) click to toggle source
     # File lib/dm-types/support/dirty_minder.rb, line 157
157:       def hook_value(resource, value)
158:         return if value.kind_of? Hooker
159: 
160:         value.extend Hooker
161:         value.track(resource, self)
162:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.