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