method
expanded_version
rails latest stable - Class:
ActiveSupport::Cache::Store
expanded_version(key)private
No documentation available.
# File activesupport/lib/active_support/cache.rb, line 997
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) }.tap(&:compact!).to_param
when key.respond_to?(:to_a) then expanded_version(key.to_a)
end
end