Module: CustomTimestamps

Defined in:
lib/activerecord-custom_timestamps/model.rb,
lib/activerecord-custom_timestamps/config.rb,
lib/activerecord-custom_timestamps/railtie.rb,
lib/activerecord-custom_timestamps/version.rb,
lib/activerecord-custom_timestamps/rails3_model.rb

Defined Under Namespace

Modules: Model, Rails3Model Classes: Railtie

Constant Summary collapse

VERSION =
'0.2.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.update_custom_updated_timestamp_on_createObject

Returns the value of attribute update_custom_updated_timestamp_on_create.



3
4
5
# File 'lib/activerecord-custom_timestamps/config.rb', line 3

def update_custom_updated_timestamp_on_create
  @update_custom_updated_timestamp_on_create
end

Class Method Details

.update_custom_updated_timestamp_on_create?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/activerecord-custom_timestamps/config.rb', line 4

def update_custom_updated_timestamp_on_create?
  !!update_custom_updated_timestamp_on_create
end