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

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) before_create

Set the create timestamp when creating



61
62
63
64
# File 'lib/sequel/plugins/timestamps.rb', line 61

def before_create
  set_create_timestamp
  super
end

- (Object) before_update

Set the update timestamp when updating



67
68
69
70
# File 'lib/sequel/plugins/timestamps.rb', line 67

def before_update
  set_update_timestamp
  super
end