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:
parent
0b4cfa2ba3
commit
673e33eee5
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ module ActiveRecord
|
|||
# the cache key will also include a version.
|
||||
#
|
||||
# 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)
|
||||
if new_record?
|
||||
"#{model_name.cache_key}/new"
|
||||
|
|
Loading…
Reference in a new issue