1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

[ci skip] Fix typo

This commit is contained in:
Francesco Rodríguez 2018-10-08 08:32:56 +02:00 committed by GitHub
parent 0b4cfa2ba3
commit 673e33eee5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,7 @@ module ActiveRecord
# the cache key will also include a version. # the cache key will also include a version.
# #
# Product.cache_versioning = false # Product.cache_versioning = false
# Person.find(5).cache_key # => "people/5-20071224150000" (updated_at available) # Product.find(5).cache_key # => "products/5-20071224150000" (updated_at available)
def cache_key(*timestamp_names) def cache_key(*timestamp_names)
if new_record? if new_record?
"#{model_name.cache_key}/new" "#{model_name.cache_key}/new"