module ActiveRecord::CachedAt::Timestamp
Public Instance Methods
timestamp_attributes_for_create()
click to toggle source
# File lib/cached_at/timestamp.rb, line 13 def timestamp_attributes_for_create (['created_at', 'udpated_at', 'cached_at'] + column_names.select{|c| c.end_with?('_cached_at') }).map! do |name| attribute_aliases[name] || name end end
timestamp_attributes_for_update()
click to toggle source
# File lib/cached_at/timestamp.rb, line 9 def timestamp_attributes_for_update ["updated_at", "updated_on", 'cached_at'].map! { |name| attribute_aliases[name] || name } end