aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/integration.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-11-04 13:01:40 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-11-04 13:01:57 -0200
commit91d72fe6529ad8dc157542a955c7e58d0f9d53e6 (patch)
tree4e94a242058f949481f4854d1e901e9506c4fb4d /activerecord/lib/active_record/integration.rb
parent6e4a810f51b9ed2468b92247ef5568cc9d6dbcc0 (diff)
downloadrails-91d72fe6529ad8dc157542a955c7e58d0f9d53e6.tar.gz
rails-91d72fe6529ad8dc157542a955c7e58d0f9d53e6.tar.bz2
rails-91d72fe6529ad8dc157542a955c7e58d0f9d53e6.zip
:scissors: [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/integration.rb')
-rw-r--r--activerecord/lib/active_record/integration.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/integration.rb b/activerecord/lib/active_record/integration.rb
index 6449789fe4..2b275a2ed9 100644
--- a/activerecord/lib/active_record/integration.rb
+++ b/activerecord/lib/active_record/integration.rb
@@ -45,7 +45,7 @@ module ActiveRecord
# Product.new.cache_key # => "products/new"
# Product.find(5).cache_key # => "products/5" (updated_at not available)
# Person.find(5).cache_key # => "people/5-20071224150000" (updated_at available)
- #
+ #
# You can also pass a list of named timestamps, and the newest in the list will be
# used to generate the key:
#
@@ -56,7 +56,7 @@ module ActiveRecord
"#{self.class.model_name.cache_key}/new"
when timestamp_names.any?
timestamps = timestamp_names.collect { |method| send(method) }.compact
- "#{self.class.model_name.cache_key}/#{id}-#{timestamps.max.utc.to_s(:number)}"
+ "#{self.class.model_name.cache_key}/#{id}-#{timestamps.max.utc.to_s(:number)}"
when timestamp = max_updated_column_timestamp
timestamp = timestamp.utc.to_s(cache_timestamp_format)
"#{self.class.model_name.cache_key}/#{id}-#{timestamp}"