Skip to content
Browse files

revises the documentation of AR::Base.cache_timestamp_format [ci skip]

  • Loading branch information...
1 parent 92949d2 commit 1b776b947047ac4e13fc96c8c6aff2808c15692f @fxn fxn committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 activerecord/lib/active_record/integration.rb
View
6 activerecord/lib/active_record/integration.rb
@@ -5,8 +5,10 @@ module Integration
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

0 comments on commit 1b776b9

Please sign in to comment.
Something went wrong with that request. Please try again.