Methods
- C
- E
- M
- N
- U
Class Public methods
Instance Public methods
# File actionpack/lib/action_dispatch/middleware/static.rb, line 11 11: def match?(path) 12: path = path.dup 13: 14: full_path = path.empty? ? @root : File.join(@root, escape_glob_chars(unescape_path(path))) 15: paths = "#{full_path}#{ext}" 16: 17: matches = Dir[paths] 18: match = matches.detect { |m| File.file?(m) } 19: if match 20: match.sub!(@compiled_root, '') 21: ::Rack::Utils.escape(match) 22: end 23: end