diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2018-09-07 08:09:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-07 08:09:41 -0400 |
commit | 2a470d73a75ebf8cd7975e469bd82586d9234442 (patch) | |
tree | e96e757058b3c088342e8c0681b87b9cde4ac1c3 /railties | |
parent | 736edb982856f0de04d4566f657c0c84f145e7ef (diff) | |
parent | 180dcd1bfa801ad132343c64245db606bd85ed96 (diff) | |
download | rails-2a470d73a75ebf8cd7975e469bd82586d9234442.tar.gz rails-2a470d73a75ebf8cd7975e469bd82586d9234442.tar.bz2 rails-2a470d73a75ebf8cd7975e469bd82586d9234442.zip |
Merge pull request #33756 from piecehealth/pr
Add `inspection_masks` to make values of sensitive database columns w…
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/configuration_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index c2699006f6..f5119b1931 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -1996,6 +1996,15 @@ module ApplicationTests assert_equal false, ActionView::Template.finalize_compiled_template_methods end + test "ActiveRecord::Base.filter_attributes should equal to filter_parameters" do + app_file "config/initializers/filter_parameters_logging.rb", <<-RUBY + Rails.application.config.filter_parameters += [ :password, :credit_card_number ] + RUBY + app "development" + assert_equal [ :password, :credit_card_number ], Rails.application.config.filter_parameters + assert_equal [ :password, :credit_card_number ], ActiveRecord::Base.filter_attributes + end + private def force_lazy_load_hooks yield # Tasty clarifying sugar, homie! We only need to reference a constant to load it. |