module Sequel::Plugins::UpdatePrimaryKey::InstanceMethods

Public Instance Methods

after_update() click to toggle source

Clear the #pk_hash and object dataset cache, and recache the #pk_hash

# File lib/sequel/plugins/update_primary_key.rb, line 35
def after_update
  super
  @pk_hash = nil
  pk_hash
end
pk_hash() click to toggle source

Cache the #pk_hash instead of generating it every time

# File lib/sequel/plugins/update_primary_key.rb, line 42
def pk_hash
  @pk_hash ||= super
end