aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/railtie.rb
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2010-07-27 19:24:56 -0700
committerwycats <wycats@gmail.com>2010-07-27 19:25:07 -0700
commit123eb25fd12c5a5ec63e18082dcdda6318bc942e (patch)
tree122b95f6144520861bfd6b2142f5b239628f0f95 /actionpack/lib/action_dispatch/railtie.rb
parente17e08efef68e9865cfbd5c0155b3d9734339192 (diff)
downloadrails-123eb25fd12c5a5ec63e18082dcdda6318bc942e.tar.gz
rails-123eb25fd12c5a5ec63e18082dcdda6318bc942e.tar.bz2
rails-123eb25fd12c5a5ec63e18082dcdda6318bc942e.zip
Add a header that tells Internet Explorer (all versions) to use the best available standards support. This ensures that IE doesn't go into quirks mode because it has been blacklisted by too many users pressing the incompatible button. It also tells IE to use the ChromeFrame renderer, if the user has installed the plugin.
This guarantees that the best available standards support will be used on the client.
Diffstat (limited to 'actionpack/lib/action_dispatch/railtie.rb')
-rw-r--r--actionpack/lib/action_dispatch/railtie.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/railtie.rb b/actionpack/lib/action_dispatch/railtie.rb
index ed93211255..a3af37947a 100644
--- a/actionpack/lib/action_dispatch/railtie.rb
+++ b/actionpack/lib/action_dispatch/railtie.rb
@@ -7,10 +7,11 @@ module ActionDispatch
config.action_dispatch.x_sendfile_header = ""
config.action_dispatch.ip_spoofing_check = true
config.action_dispatch.show_exceptions = true
+ config.action_dispatch.best_standards_support = true
# Prepare dispatcher callbacks and run 'prepare' callbacks
initializer "action_dispatch.prepare_dispatcher" do |app|
ActionDispatch::Callbacks.to_prepare { app.routes_reloader.execute_if_updated }
end
end
-end \ No newline at end of file
+end