diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-21 16:50:11 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-21 16:52:49 +0100 |
commit | fc4f237864541f5012f9b8cc8e0ec81960377e55 (patch) | |
tree | af89be8dd26fe96044d4b9114f1cea1a4e6910cc /railties/test | |
parent | 04063393f9392b83cf5ccd0a16f217cc7261e15c (diff) | |
download | rails-fc4f237864541f5012f9b8cc8e0ec81960377e55.tar.gz rails-fc4f237864541f5012f9b8cc8e0ec81960377e55.tar.bz2 rails-fc4f237864541f5012f9b8cc8e0ec81960377e55.zip |
Make filter parameters based on request, so they can be modified for anything in the middleware stack.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/configuration_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index 8c08fe5acc..6968e87986 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -125,9 +125,9 @@ module ApplicationTests 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| + config.filter_parameters += [ :foo, 'bar', lambda { |key, value| value = value.reverse if key =~ /baz/ - end + }] RUBY assert_nothing_raised do |