From 1b776b947047ac4e13fc96c8c6aff2808c15692f Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Wed, 20 Feb 2013 18:02:29 +0100 Subject: revises the documentation of AR::Base.cache_timestamp_format [ci skip] --- activerecord/lib/active_record/integration.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/integration.rb b/activerecord/lib/active_record/integration.rb index 7f877a6471..32d35f0ec1 100644 --- a/activerecord/lib/active_record/integration.rb +++ b/activerecord/lib/active_record/integration.rb @@ -5,8 +5,10 @@ module ActiveRecord included do ## # :singleton-method: - # Indicates the format used to generate the timestamp format in the cache key. - # This is +:number+, by default. + # Indicates the format used to generate the timestamp in the cache key. + # Accepts any of the symbols in Time::DATE_FORMATS. + # + # This is +:nsec+, by default. class_attribute :cache_timestamp_format, :instance_writer => false self.cache_timestamp_format = :nsec end -- cgit v1.2.3