Class: Rack::ForceIE7

Inherits:
Object
  • Object
show all
Defined in:
lib/rack-forceie7.rb

Instance Method Summary collapse

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, options = { }
  @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