From aa24ea41d00e4a5a1de317a7356aca357d27c3ff Mon Sep 17 00:00:00 2001 From: wycats Date: Tue, 27 Jul 2010 20:38:26 -0700 Subject: Forgot to check in this new file --- .../action_dispatch/middleware/best_standards_support.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 actionpack/lib/action_dispatch/middleware/best_standards_support.rb diff --git a/actionpack/lib/action_dispatch/middleware/best_standards_support.rb b/actionpack/lib/action_dispatch/middleware/best_standards_support.rb new file mode 100644 index 0000000000..df8f7766bb --- /dev/null +++ b/actionpack/lib/action_dispatch/middleware/best_standards_support.rb @@ -0,0 +1,13 @@ +module ActionDispatch + class BestStandardsSupport + def initialize(app) + @app = app + end + + def call(env) + status, headers, body = @app.call(env) + headers["X-UA-Compatible"] = "IE=Edge,chrome=1" + [status, headers, body] + end + end +end -- cgit v1.2.3