Module: Sequel::Plugins::UpdatePrimaryKey::InstanceMethods

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) after_update

Clear the cached primary key.



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

def after_update
  super
  @pk_hash = nil
end

- (Object) pk_hash

Use the cached primary key if one is present.



31
32
33
# File 'lib/sequel/plugins/update_primary_key.rb', line 31

def pk_hash
  @pk_hash || super
end