diff options
author | Xavier Noria <fxn@hashref.com> | 2013-02-20 18:02:29 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2013-02-20 18:08:55 +0100 |
commit | 1b776b947047ac4e13fc96c8c6aff2808c15692f (patch) | |
tree | d74f61031ab26382ac302c09fe5f3bae5c63db41 /activerecord | |
parent | 92949d2a44f2c83a1537e0e4f29864ffc506cb1b (diff) | |
download | rails-1b776b947047ac4e13fc96c8c6aff2808c15692f.tar.gz rails-1b776b947047ac4e13fc96c8c6aff2808c15692f.tar.bz2 rails-1b776b947047ac4e13fc96c8c6aff2808c15692f.zip |
revises the documentation of AR::Base.cache_timestamp_format [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/integration.rb | 6 |
1 files changed, 4 insertions, 2 deletions
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 <tt>Time::DATE_FORMATS</tt>. + # + # This is +:nsec+, by default. class_attribute :cache_timestamp_format, :instance_writer => false self.cache_timestamp_format = :nsec end |