Module Sequel::Plugins::Timestamps::InstanceMethods
In: lib/sequel/plugins/timestamps.rb

Methods

Public Instance methods

Set the update timestamp when updating

[Source]

    # File lib/sequel/plugins/timestamps.rb, line 74
74:         def before_update
75:           set_update_timestamp
76:           super
77:         end

Set the create timestamp when creating

[Source]

    # File lib/sequel/plugins/timestamps.rb, line 80
80:         def before_validation
81:           set_create_timestamp if new?
82:           super
83:         end

[Validate]