edge badge

Action View Resolver

Namespace
Methods
C
F
N
Class Public methods
new()
# File actionview/lib/action_view/template/resolver.rb, line 135
def initialize
  @cache = Cache.new
end
Instance Public methods
clear_cache()
# File actionview/lib/action_view/template/resolver.rb, line 139
def clear_cache
  @cache.clear
end
find_all(name, prefix = nil, partial = false, details = {}, key = nil, locals = [])

Normalizes the arguments and passes it on to find_templates.

# File actionview/lib/action_view/template/resolver.rb, line 144
def find_all(name, prefix = nil, partial = false, details = {}, key = nil, locals = [])
  cached(key, [name, prefix, partial], details, locals) do
    find_templates(name, prefix, partial, details)
  end
end
find_all_anywhere(name, prefix, partial = false, details = {}, key = nil, locals = [])
# File actionview/lib/action_view/template/resolver.rb, line 150
def find_all_anywhere(name, prefix, partial = false, details = {}, key = nil, locals = [])
  cached(key, [name, prefix, partial], details, locals) do
    find_templates(name, prefix, partial, details, true)
  end
end