aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-10-26 19:05:34 +0900
committerGitHub <noreply@github.com>2018-10-26 19:05:34 +0900
commit61490805fe25091b080f5bba0e286716cdb56245 (patch)
tree4868de648bd55ecfe7a69e9d17b3d8465a6e5a7b /activerecord/CHANGELOG.md
parent9e9e2b7f71d767e54bd14af752cbbbd9908e3713 (diff)
parent32b03b46150b0161eba2321ccac7678511e3d58e (diff)
downloadrails-61490805fe25091b080f5bba0e286716cdb56245.tar.gz
rails-61490805fe25091b080f5bba0e286716cdb56245.tar.bz2
rails-61490805fe25091b080f5bba0e286716cdb56245.zip
Merge pull request #34208 from yskkin/inspect_with_parameter_filter
Implement AR#inspect using ParameterFilter
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index f56551beca..0d9bc3cec7 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -161,13 +161,13 @@
specify sensitive attributes to specific model.
```
- Rails.application.config.filter_parameters += [:credit_card_number]
- Account.last.inspect # => #<Account id: 123, name: "DHH", credit_card_number: [FILTERED] ...>
+ Rails.application.config.filter_parameters += [:credit_card_number, /phone/]
+ Account.last.inspect # => #<Account id: 123, name: "DHH", credit_card_number: [FILTERED], telephone_number: [FILTERED] ...>
SecureAccount.filter_attributes += [:name]
SecureAccount.last.inspect # => #<SecureAccount id: 42, name: [FILTERED], credit_card_number: [FILTERED] ...>
```
- *Zhang Kang*
+ *Zhang Kang*, *Yoshiyuki Kinjo*
* Deprecate `column_name_length`, `table_name_length`, `columns_per_table`,
`indexes_per_table`, `columns_per_multicolumn_index`, `sql_query_length`,