Module: Sequel::Plugins::Timestamps::InstanceMethods
- Defined in:
- lib/sequel/plugins/timestamps.rb
Instance Method Summary collapse
- 
  
    
      #before_update  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Set the update timestamp when updating. 
- 
  
    
      #before_validation  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Set the create timestamp when creating. 
Instance Method Details
#before_update ⇒ Object
Set the update timestamp when updating
| 74 75 76 77 | # File 'lib/sequel/plugins/timestamps.rb', line 74 def before_update super end | 
#before_validation ⇒ Object
Set the create timestamp when creating
| 80 81 82 83 | # File 'lib/sequel/plugins/timestamps.rb', line 80 def before_validation if new? super end |