aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2010-07-27 20:38:26 -0700
committerwycats <wycats@gmail.com>2010-07-27 20:38:26 -0700
commitaa24ea41d00e4a5a1de317a7356aca357d27c3ff (patch)
tree12af73801ee97f2d2aff04638ab101c50630bfb1 /actionpack
parent123eb25fd12c5a5ec63e18082dcdda6318bc942e (diff)
downloadrails-aa24ea41d00e4a5a1de317a7356aca357d27c3ff.tar.gz
rails-aa24ea41d00e4a5a1de317a7356aca357d27c3ff.tar.bz2
rails-aa24ea41d00e4a5a1de317a7356aca357d27c3ff.zip
Forgot to check in this new file
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/middleware/best_standards_support.rb13
1 files changed, 13 insertions, 0 deletions
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