Action View Resolver

Namespace

Class

Methods

Class Public methods

new()

📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 136
    def initialize
      @cache = Cache.new
    end
🔎 See on GitHub

Instance Public methods

clear_cache()

📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 140
    def clear_cache
      @cache.clear
    end
🔎 See on GitHub

find_all(name, prefix = nil, partial = false, details = {}, key = nil, locals = [])

Normalizes the arguments and passes it on to find_templates.

📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 145
    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
🔎 See on GitHub

find_all_anywhere(name, prefix, partial = false, details = {}, key = nil, locals = [])

📝 Source code
# File actionview/lib/action_view/template/resolver.rb, line 151
    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
🔎 See on GitHub