aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/best_standards_support.rb
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2013-01-28 12:14:28 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2013-01-29 14:20:58 -0500
commit3bccd12373567bf9369f44522599b7d61a006f60 (patch)
tree5b886e1b3e44f94ae1822d8b8eb466f47cf4615e /actionpack/lib/action_dispatch/middleware/best_standards_support.rb
parent88e4ec6e3231db8036e2d10093bb5fcce060ad73 (diff)
downloadrails-3bccd12373567bf9369f44522599b7d61a006f60.tar.gz
rails-3bccd12373567bf9369f44522599b7d61a006f60.tar.bz2
rails-3bccd12373567bf9369f44522599b7d61a006f60.zip
Remove BestStandardsSupport middleware
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/best_standards_support.rb')
-rw-r--r--actionpack/lib/action_dispatch/middleware/best_standards_support.rb30
1 files changed, 0 insertions, 30 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/best_standards_support.rb b/actionpack/lib/action_dispatch/middleware/best_standards_support.rb
deleted file mode 100644
index 94efeb79fa..0000000000
--- a/actionpack/lib/action_dispatch/middleware/best_standards_support.rb
+++ /dev/null
@@ -1,30 +0,0 @@
-module ActionDispatch
- class BestStandardsSupport
- def initialize(app, type = true)
- @app = app
-
- @header = case type
- when true
- "IE=Edge,chrome=1"
- when :builtin
- "IE=Edge"
- when false
- nil
- end
- end
-
- def call(env)
- status, headers, body = @app.call(env)
-
- if headers["X-UA-Compatible"] && @header
- unless headers["X-UA-Compatible"][@header]
- headers["X-UA-Compatible"] << "," << @header.to_s
- end
- else
- headers["X-UA-Compatible"] = @header
- end
-
- [status, headers, body]
- end
- end
-end