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