Skip to content

Commit

Permalink
Merge pull request rails#41267 from arjan0307/patch-4
Browse files Browse the repository at this point in the history
Provide a working example for a filter_parameters lambda
  • Loading branch information
rafaelfranca authored Jan 28, 2021
2 parents f25ce17 + 46f2c6e commit 4af74ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/test/application/configuration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ class Comment < ActiveRecord::Base
test "filter_parameters should be able to set via config.filter_parameters" do
add_to_config <<-RUBY
config.filter_parameters += [ :foo, 'bar', lambda { |key, value|
value = value.reverse if /baz/.match?(key)
value.reverse! if /baz/.match?(key)
}]
RUBY

Expand Down

0 comments on commit 4af74ff

Please sign in to comment.