method

find_candidate_template_paths

rails latest stable - Class: ActionView::OptimizedFileSystemResolver

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.1.7.7) is shown here.

find_candidate_template_paths(path)
private

No documentation available.

# File actionview/lib/action_view/template/resolver.rb, line 349
      def find_candidate_template_paths(path)
        # Instead of checking for every possible path, as our other globs would
        # do, scan the directory for files with the right prefix.
        query = "#{escape_entry(File.join(@path, path))}*"

        Dir[query].reject do |filename|
          File.directory?(filename)
        end
      end