diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-09-10 16:58:56 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-09-12 18:51:55 +0300 |
commit | d1a14865e055091fc2a50ddfd7e9e206152b1095 (patch) | |
tree | 63e86a87156f090c3474c6ad0a75842ad2109f99 /railties | |
parent | d40e33fcc5899a91ceab10f8bd86a1455846917a (diff) | |
download | rails-d1a14865e055091fc2a50ddfd7e9e206152b1095.tar.gz rails-d1a14865e055091fc2a50ddfd7e9e206152b1095.tar.bz2 rails-d1a14865e055091fc2a50ddfd7e9e206152b1095.zip |
Build string set when `filter_attributes` is assigned
It would allow `filter_attributes` to be reused across multiple
calls to `#inspect` or `#pretty_print`.
- Add `require "set"`
- Remove `filter_attributes` instance reader. I think there is no need
to keep it.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/configuration_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index 83192edb39..44f6af5d4a 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -3,6 +3,7 @@ require "isolation/abstract_unit" require "rack/test" require "env_helpers" +require "set" class ::MyMailInterceptor def self.delivering_email(email); email; end @@ -2049,7 +2050,7 @@ module ApplicationTests RUBY app "development" assert_equal [ :password, :credit_card_number ], Rails.application.config.filter_parameters - assert_equal [ :password, :credit_card_number ], ActiveRecord::Base.filter_attributes + assert_equal [ "password", "credit_card_number" ].to_set, ActiveRecord::Base.filter_attributes end private |