instance method
expanded_version
Ruby on Rails 6.0.6
Since v5.2.8.1 Private — implementation detail, not part of the public APISignature
expanded_version(key)
No documentation comment.
Parameters
-
keyreq
Source
# File activesupport/lib/active_support/cache.rb, line 673
def expanded_version(key)
case
when key.respond_to?(:cache_version) then key.cache_version.to_param
when key.is_a?(Array) then key.map { |element| expanded_version(element) }.compact.to_param
when key.respond_to?(:to_a) then expanded_version(key.to_a)
end
end
Defined in activesupport/lib/active_support/cache.rb line 673
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::Store