diff options
author | wycats <wycats@gmail.com> | 2010-08-09 11:48:31 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-08-09 11:48:31 -0700 |
commit | 6767946374353f90ce05e68d38bcb93dcb8bae56 (patch) | |
tree | 28b22ee479c89292bc8c6c1fe604ece36a716beb /railties/lib | |
parent | 4f7565c4de1f877547a6b901a8416b18c613acc9 (diff) | |
download | rails-6767946374353f90ce05e68d38bcb93dcb8bae56.tar.gz rails-6767946374353f90ce05e68d38bcb93dcb8bae56.tar.bz2 rails-6767946374353f90ce05e68d38bcb93dcb8bae56.zip |
Improve best_standards_support to use only IE=Edge in development mode
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/application.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index 6622cfdd2f..5b26333486 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -205,7 +205,7 @@ module Rails middleware.use ::ActionDispatch::ParamsParser middleware.use ::Rack::MethodOverride middleware.use ::ActionDispatch::Head - middleware.use ::ActionDispatch::BestStandardsSupport if config.action_dispatch.best_standards_support + middleware.use ::ActionDispatch::BestStandardsSupport, config.action_dispatch.best_standards_support if config.action_dispatch.best_standards_support end end diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt index 99758dfcf7..7616614aff 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt @@ -19,4 +19,8 @@ # Print deprecation notices to the Rails logger config.active_support.deprecation = :log + + # Only use best-standards-support built into browsers + config.action_dispatch.best_standards_support = :builtin end + |