module Sequel::Plugins::Timestamps::InstanceMethods

  1. lib/sequel/plugins/timestamps.rb
Parent: Timestamps

Methods

Public Instance

  1. before_create
  2. before_update

Public Instance methods

before_create ()

Set the create timestamp when creating

[show source]
# File lib/sequel/plugins/timestamps.rb, line 61
def before_create
  set_create_timestamp
  super
end
before_update ()

Set the update timestamp when updating

[show source]
# File lib/sequel/plugins/timestamps.rb, line 67
def before_update
  set_update_timestamp
  super
end