diff options
author | José Valim <jose.valim@gmail.com> | 2011-11-28 08:43:14 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-11-28 08:43:14 -0800 |
commit | a0c61c81d7b118b61eb7f385af0d3ba71f95ba93 (patch) | |
tree | 63e0a5cccd09a08b25f4172d2b5a4361e4ef9712 /railties | |
parent | 970caea5bc1105e69acf46bbf9a9e73024b61625 (diff) | |
parent | fe7d4f09ef2296e45ab4a82c1556c63382856607 (diff) | |
download | rails-a0c61c81d7b118b61eb7f385af0d3ba71f95ba93.tar.gz rails-a0c61c81d7b118b61eb7f385af0d3ba71f95ba93.tar.bz2 rails-a0c61c81d7b118b61eb7f385af0d3ba71f95ba93.zip |
Merge pull request #3785 from lest/backtrace-cleaner-env
Put backtrace_cleaner to env
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/application.rb | 3 | ||||
-rw-r--r-- | railties/test/application/configuration_test.rb | 9 |
2 files changed, 7 insertions, 5 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index 25ff74506a..2a62446a04 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -124,7 +124,8 @@ module Rails "action_dispatch.parameter_filter" => config.filter_parameters, "action_dispatch.secret_token" => config.secret_token, "action_dispatch.show_exceptions" => config.action_dispatch.show_exceptions, - "action_dispatch.logger" => Rails.logger + "action_dispatch.logger" => Rails.logger, + "action_dispatch.backtrace_cleaner" => Rails.backtrace_cleaner }) end diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index f37a024a0b..28ffff58ca 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -521,10 +521,11 @@ module ApplicationTests make_basic_app assert_respond_to app, :env_config - assert_equal app.env_config['action_dispatch.parameter_filter'], app.config.filter_parameters - assert_equal app.env_config['action_dispatch.secret_token'], app.config.secret_token - assert_equal app.env_config['action_dispatch.show_exceptions'], app.config.action_dispatch.show_exceptions - assert_equal app.env_config['action_dispatch.logger'], Rails.logger + assert_equal app.env_config['action_dispatch.parameter_filter'], app.config.filter_parameters + assert_equal app.env_config['action_dispatch.secret_token'], app.config.secret_token + assert_equal app.env_config['action_dispatch.show_exceptions'], app.config.action_dispatch.show_exceptions + assert_equal app.env_config['action_dispatch.logger'], Rails.logger + assert_equal app.env_config['action_dispatch.backtrace_cleaner'], Rails.backtrace_cleaner end end end |