Class/Module Index [+]

Quicksearch

Sequel::Plugins::Timestamps::ClassMethods

Attributes

create_timestamp_field[R]

The field to store the create timestamp

update_timestamp_field[R]

The field to store the update timestamp

Public Instance Methods

create_timestamp_overwrite?() click to toggle source

Whether to overwrite the create timestamp if it already exists

# File lib/sequel/plugins/timestamps.rb, line 46
def create_timestamp_overwrite?
  @create_timestamp_overwrite
end
inherited(subclass) click to toggle source

Copy the class instance variables used from the superclass to the subclass

# File lib/sequel/plugins/timestamps.rb, line 51
def inherited(subclass)
  super
  [:@create_timestamp_field, :@update_timestamp_field, :@create_timestamp_overwrite, :@set_update_timestamp_on_create].each do |iv|
    subclass.instance_variable_set(iv, instance_variable_get(iv))
  end
end
set_update_timestamp_on_create?() click to toggle source

Whether to set the update timestamp to the create timestamp when creating

# File lib/sequel/plugins/timestamps.rb, line 59
def set_update_timestamp_on_create?
  @set_update_timestamp_on_create
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.