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
27 def after_update
28   super
29   @pk_hash = nil
30 end
pk_hash()

Use the cached primary key if one is present.

[show source]
   # File lib/sequel/plugins/update_primary_key.rb
33 def pk_hash
34   @pk_hash || super
35 end