Class/Module Index [+]

Quicksearch

Sequel::Plugins::IdentityMap::InstanceMethods

Public Instance Methods

delete() click to toggle source

Remove instances from the identity map cache if they are deleted.

# File lib/sequel/plugins/identity_map.rb, line 213
def delete
  super
  if (idm = model.identity_map) && (k = model.identity_map_key(pk))
    idm.delete(k)
  end
  self
end
merge_db_update(row) click to toggle source

Merge the current values into the values provided in the row, ensuring that current values are not overridden by new values.

# File lib/sequel/plugins/identity_map.rb, line 223
def merge_db_update(row)
  @values = row.merge(@values)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.