diff options
author | Prem Sichanugrist <s@sikachu.com> | 2010-01-21 11:48:27 +0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-21 11:41:31 +0100 |
commit | b1bc3b3cd352f68d79d7e232e9520eacb56ca41e (patch) | |
tree | efd65a8bdbf9a5d75e1101154aa05b38bf06422a /railties/test/application | |
parent | bd4f21fbac495fb28b6be993be808509e567239e (diff) | |
download | rails-b1bc3b3cd352f68d79d7e232e9520eacb56ca41e.tar.gz rails-b1bc3b3cd352f68d79d7e232e9520eacb56ca41e.tar.bz2 rails-b1bc3b3cd352f68d79d7e232e9520eacb56ca41e.zip |
Add deprecation warning for calling filter_parameter_logging ActionController::Base, and allow it to be configured in config.filter_parameters
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/configuration_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index 79dfacdcdb..8c08fe5acc 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -122,5 +122,17 @@ module ApplicationTests require "#{app_path}/config/environment" end end + + test "filter_parameters should be able to set via config.filter_parameters" do + add_to_config <<-RUBY + config.filter_parameters :foo, 'bar' do |key, value| + value = value.reverse if key =~ /baz/ + end + RUBY + + assert_nothing_raised do + require "#{app_path}/config/application" + end + end end end |