Module: Sequel::Plugins::UpdatePrimaryKey::InstanceMethods
- Defined in:
- lib/sequel/plugins/update_primary_key.rb
Instance Method Summary collapse
- 
  
    
      #after_update  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Clear the cached primary key. 
- 
  
    
      #pk_hash  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Use the cached primary key if one is present. 
Instance Method Details
#after_update ⇒ Object
Clear the cached primary key.
| 27 28 29 30 | # File 'lib/sequel/plugins/update_primary_key.rb', line 27 def after_update super @pk_hash = nil end | 
#pk_hash ⇒ Object
Use the cached primary key if one is present.
| 33 34 35 | # File 'lib/sequel/plugins/update_primary_key.rb', line 33 def pk_hash @pk_hash || super end |