mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 19:26: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
|
||||
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
|
||||
|
|
|
@ -5,4 +5,5 @@
|
|||
# Configure sensitive parameters which will be filtered from the log file.
|
||||
Rails.application.config.filter_parameters += %i[
|
||||
password passw secret token _key crypt salt certificate otp ssn key
|
||||
_pem _ciphertext
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue