Object
# File lib/action_dispatch/middleware/static.rb, line 12
12: def call(env)
13: path = env['PATH_INFO'].chomp('/')
14: method = env['REQUEST_METHOD']
15:
16: if FILE_METHODS.include?(method)
17: if file_exist?(path)
18: return @file_server.call(env)
19: else
20: cached_path = directory_exist?(path) ? "#{path}/index" : path
21: cached_path += ::ActionController::Base.page_cache_extension
22:
23: if file_exist?(cached_path)
24: env['PATH_INFO'] = cached_path
25: return @file_server.call(env)
26: end
27: end
28: end
29:
30: @app.call(env)
31: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.