instance method
cache_key_with_version
Ruby on Rails 8.1.2
Since v6.0.6Signature
cache_key_with_version()
Returns a cache key along with the version.
Source
# File activerecord/lib/active_record/relation.rb, line 529
def cache_key_with_version
if version = cache_version
"#{cache_key}-#{version}"
else
cache_key
end
end
Defined in activerecord/lib/active_record/relation.rb line 529
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Relation