Class: ActionView::OptimizedFileSystemResolver
- Inherits:
-
FileSystemResolver
- Object
- Resolver
- PathResolver
- FileSystemResolver
- ActionView::OptimizedFileSystemResolver
- Defined in:
- actionpack/lib/action_view/template/resolver.rb
Overview
An Optimized resolver for Rails’ most common case.
Constant Summary
Constants inherited from PathResolver
PathResolver::DEFAULT_PATTERN, PathResolver::EXTENSIONS
Instance Method Summary collapse
-
#build_query(path, details) ⇒ Object
:nodoc:.
Methods inherited from FileSystemResolver
Methods inherited from PathResolver
Methods inherited from Resolver
#clear_cache, #find_all, #initialize
Constructor Details
This class inherits a constructor from ActionView::FileSystemResolver
Instance Method Details
#build_query(path, details) ⇒ Object
:nodoc:
244 245 246 247 248 249 250 251 252 253 254 255 |
# File 'actionpack/lib/action_view/template/resolver.rb', line 244 def build_query(path, details) exts = EXTENSIONS.map { |ext| details[ext] } query = escape_entry(File.join(@path, path)) exts.each do |ext| query << "{" ext.compact.uniq.each { |e| query << ".#{e}," } query << "}" end query end |