diff options
author | Prem Sichanugrist <s@sikachu.com> | 2011-02-23 02:25:38 +0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-25 10:03:40 -0800 |
commit | 439a74520daa6ff255c83000cf6b0f3407805acf (patch) | |
tree | d37f7406facbff75d064a459ba3d2b00344bcf3b /railties/lib | |
parent | 13547c16d97b5f52db11d9f48704bbea20b54a4c (diff) | |
download | rails-439a74520daa6ff255c83000cf6b0f3407805acf.tar.gz rails-439a74520daa6ff255c83000cf6b0f3407805acf.tar.bz2 rails-439a74520daa6ff255c83000cf6b0f3407805acf.zip |
Make sure that we set `env["action_dispatch.show_exceptions"]`
This has been used by `show_exception` middleware even the setting wasn't get passed to `env` hash.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/application.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index 9cb3a0f008..fb0f6fe032 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -122,7 +122,8 @@ module Rails @env_config ||= super.merge({ "action_dispatch.parameter_filter" => config.filter_parameters, "action_dispatch.secret_token" => config.secret_token, - "action_dispatch.asset_path" => nil + "action_dispatch.asset_path" => nil, + "action_dispatch.show_exceptions" => config.action_dispatch.show_exceptions }) end |