module Sequel::Plugins::Timestamps::InstanceMethods
Public Instance Methods
before_update()
click to toggle source
Set the update timestamp when updating
Calls superclass method
# File lib/sequel/plugins/timestamps.rb 74 def before_update 75 set_update_timestamp 76 super 77 end
before_validation()
click to toggle source
Set the create timestamp when creating
Calls superclass method
# File lib/sequel/plugins/timestamps.rb 80 def before_validation 81 set_create_timestamp if new? 82 super 83 end