Module: DataMapper::Resource

Included in:
Accounts::Account, Accounts::ActionToken
Defined in:
lib/accounts/model.rb,
lib/accounts/model.rb

Instance Method Summary collapse

Instance Method Details

#taint!(property) ⇒ Object



45
46
47
48
49
# File 'lib/accounts/model.rb', line 45

def taint! property
  self.persistence_state = PersistenceState::Dirty.new(self) \
    unless self.persistence_state.kind_of?(PersistenceState::Dirty)
  self.persistence_state.original_attributes[properties[property]] = Object.new
end