| Module | Sequel::Plugins::Timestamps::ClassMethods |
| In: |
lib/sequel/plugins/timestamps.rb
|
| create_timestamp_field | [R] | The field to store the create timestamp |
| update_timestamp_field | [R] | The field to store the update timestamp |
Whether to overwrite the create timestamp if it already exists
# File lib/sequel/plugins/timestamps.rb, line 33
33: def create_timestamp_overwrite?
34: @create_timestamp_overwrite
35: end
Copy the class instance variables used from the superclass to the subclass
# File lib/sequel/plugins/timestamps.rb, line 38
38: def inherited(subclass)
39: super
40: [:@create_timestamp_field, :@update_timestamp_field, :@create_timestamp_overwrite, :@set_update_timestamp_on_create].each do |iv|
41: subclass.instance_variable_set(iv, instance_variable_get(iv))
42: end
43: end