Module: Sequel::Plugins::Timestamps::InstanceMethods

Defined in:
lib/sequel/lib/sequel/plugins/timestamps.rb

Instance Method Summary collapse

Instance Method Details

#before_createObject

Set the create timestamp when creating


53
54
55
56
# File 'lib/sequel/lib/sequel/plugins/timestamps.rb', line 53

def before_create
  super
  set_create_timestamp
end

#before_updateObject

Set the update timestamp when updating


59
60
61
62
# File 'lib/sequel/lib/sequel/plugins/timestamps.rb', line 59

def before_update
  super
  set_update_timestamp
end