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
31 def after_update
32   super
33   @pk_hash = nil
34 end
pk_hash()

Use the cached primary key if one is present.

[show source]
   # File lib/sequel/plugins/update_primary_key.rb
37 def pk_hash
38   @pk_hash || super
39 end