method

collection_by_cache_keys

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: CollectionCaching
collection_by_cache_keys() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/renderer/partial_renderer/collection_caching.rb, line 32
      def collection_by_cache_keys
        seed = callable_cache_key? ? @options[:cached] : ->(i) { i }

        @collection.each_with_object({}) do |item, hash|
          hash[expanded_cache_key(seed.call(item))] = item
        end
      end
Register or log in to add new notes.