module Sequel::Plugins::UpdatePrimaryKey::InstanceMethods

  1. lib/sequel/plugins/update_primary_key.rb

Methods

Public Instance

  1. after_update
  2. pk_hash

Public Instance methods

after_update ()

Clear the cached primary key.

[show source]
# File lib/sequel/plugins/update_primary_key.rb, line 25
def after_update
  super
  @pk_hash = nil
end
pk_hash ()

Use the cached primary key if one is present.

[show source]
# File lib/sequel/plugins/update_primary_key.rb, line 31
def pk_hash
  @pk_hash || super
end