Methods
Public Class methods
[ show source ]
# File actionpack/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
[ show source ]
# File actionpack/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