instance method
cache_key_with_version
Ruby on Rails edge
Since v6.0.6.1Signature
cache_key_with_version()
Returns a cache key along with the version.
Source
# File activerecord/lib/active_record/relation.rb, line 533
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 533
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Relation