Parent

Methods

Class Index [+]

Quicksearch

ActionDispatch::BestStandardsSupport

Public Class Methods

new(app, type = true) click to toggle source
    # File lib/action_dispatch/middleware/best_standards_support.rb, line 3
 3:     def initialize(app, type = true)
 4:       @app = app
 5: 
 6:       @header = case type
 7:       when true
 8:         "IE=Edge,chrome=1"
 9:       when :builtin
10:         "IE=Edge"
11:       when false
12:         nil
13:       end
14:     end

Public Instance Methods

call(env) click to toggle source
    # File lib/action_dispatch/middleware/best_standards_support.rb, line 16
16:     def call(env)
17:       status, headers, body = @app.call(env)
18:       headers["X-UA-Compatible"] = @header
19:       [status, headers, body]
20:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.