Module: Sequel::Plugins::UpdatePrimaryKey::ClassMethods

Defined in:
lib/sequel/plugins/update_primary_key.rb

Instance Method Summary collapse

Instance Method Details

#load(h) ⇒ Object

Cache the pk_hash when loading records



25
26
27
28
29
# File 'lib/sequel/plugins/update_primary_key.rb', line 25

def load(h)
  r = super(h)
  r.pk_hash
  r
end