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 /activerecord/lib/active_record/railtie.rb | |
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 'activerecord/lib/active_record/railtie.rb')
-rw-r--r-- | activerecord/lib/active_record/railtie.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/railtie.rb b/activerecord/lib/active_record/railtie.rb index 7ece083fd4..47351588d3 100644 --- a/activerecord/lib/active_record/railtie.rb +++ b/activerecord/lib/active_record/railtie.rb @@ -235,5 +235,11 @@ MSG end end end + + initializer "active_record.set_filter_attributes" do + ActiveSupport.on_load(:active_record) do + self.filter_attributes += Rails.application.config.filter_parameters + end + end end end |