Class: ActionView::LookupContext::DetailsKey

Inherits:
Object
  • Object
show all
Defined in:
lib/action_view/lookup_context.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.clearObject



69
70
71
# File 'lib/action_view/lookup_context.rb', line 69

def self.clear
  @details_keys.clear
end

.digest_cachesObject



73
74
75
# File 'lib/action_view/lookup_context.rb', line 73

def self.digest_caches
  @details_keys.values
end

.get(details) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/action_view/lookup_context.rb', line 61

def self.get(details)
  if details[:formats]
    details = details.dup
    details[:formats] &= Template::Types.symbols
  end
  @details_keys[details] ||= Concurrent::Map.new
end