Module: DataMapper::Property::DirtyMinder

Included in:
Csv, Json, Yaml
Defined in:
lib/dm-types/support/dirty_minder.rb

Defined Under Namespace

Modules: Hooker

Instance Method Summary collapse

Instance Method Details

#set!(resource, value) ⇒ Object

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



150
151
152
153
# File 'lib/dm-types/support/dirty_minder.rb', line 150

def set!(resource, value)
  hook_value(resource, value) unless value.kind_of? Hooker
  super
end