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 pk_hash and object dataset cache, and recache the pk_hash

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

Cache the pk_hash instead of generating it every time

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