mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 00:36:21 +00:00
fix: no filtrar información privada!
This commit is contained in:
parent
4ccf37c370
commit
fb4228b873
2 changed files with 8 additions and 0 deletions
|
@ -2,4 +2,11 @@
|
||||||
|
|
||||||
class ApplicationRecord < ActiveRecord::Base
|
class ApplicationRecord < ActiveRecord::Base
|
||||||
self.abstract_class = true
|
self.abstract_class = true
|
||||||
|
|
||||||
|
# Obtener una lista filtrada de atributos al momento de serializar
|
||||||
|
#
|
||||||
|
# @return [Hash]
|
||||||
|
def to_yaml(options = {})
|
||||||
|
self.class.inspection_filter.filter attributes
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -5,4 +5,5 @@
|
||||||
# Configure sensitive parameters which will be filtered from the log file.
|
# Configure sensitive parameters which will be filtered from the log file.
|
||||||
Rails.application.config.filter_parameters += %i[
|
Rails.application.config.filter_parameters += %i[
|
||||||
password passw secret token _key crypt salt certificate otp ssn key
|
password passw secret token _key crypt salt certificate otp ssn key
|
||||||
|
_pem _ciphertext
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue