Class: Rack::ForceIE7
- Inherits:
-
Object
- Object
- Rack::ForceIE7
- Defined in:
- lib/rack-forceie7.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, options = { }) ⇒ ForceIE7
constructor
A new instance of ForceIE7.
Constructor Details
#initialize(app, options = { }) ⇒ ForceIE7
Returns a new instance of ForceIE7.
3 4 5 |
# File 'lib/rack-forceie7.rb', line 3 def initialize app, = { } @app = app end |
Instance Method Details
#call(env) ⇒ Object
7 8 9 10 11 |
# File 'lib/rack-forceie7.rb', line 7 def call env status, headers, body = @app.call(env) headers["X-UA-Compatible"] = "IE=7" [status, headers, body] end |