module Sequel::Plugins::Timestamps::InstanceMethods

  1. lib/sequel/plugins/timestamps.rb

Methods

Public Instance

  1. before_update
  2. before_validation

Public Instance methods

before_update()

Set the update timestamp when updating

[show source]
   # File lib/sequel/plugins/timestamps.rb
74 def before_update
75   set_update_timestamp
76   super
77 end
before_validation()

Set the create timestamp when creating

[show source]
   # File lib/sequel/plugins/timestamps.rb
80 def before_validation
81   set_create_timestamp if new?
82   super
83 end