Flowdock
method

[]

Importance_0
v2.3.8 - Show latest stable - 0 notes - Class: ActionView::ReloadableTemplate::ReloadablePath
[](path) public

No documentation

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

Hide source
# File actionpack/lib/action_view/reloadable_template.rb, line 20
      def [](path)
        if found_template = @paths[path]
          begin
            found_template.reset_cache_if_stale!
          rescue TemplateDeleted
            unregister_template(found_template)
            self[path]
          end
        else
          load_all_templates_from_dir(templates_dir_from_path(path))
          # don't ever hand out a template without running a stale check
          (new_template = @paths[path]) && new_template.reset_cache_if_stale!
        end
      end
Register or log in to add new notes.