5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 19:56:21 +00:00

fix: no filtrar información privada!

This commit is contained in:
f 2024-04-15 16:58:55 -03:00
parent 4ccf37c370
commit fb4228b873
No known key found for this signature in database
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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
]