mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 00:56:22 +00:00
fix: los atributos filtrados son por modelo
This commit is contained in:
parent
83add8dd7d
commit
2eb3145e1c
2 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,8 @@ class Site < ApplicationRecord
|
|||
include Site::SocialDistributedPress
|
||||
include Tienda
|
||||
|
||||
self.filter_attributes += [/_key/, /_ciphertext\z/]
|
||||
|
||||
# Cifrar la llave privada que cifra y decifra campos ocultos. Sutty
|
||||
# tiene acceso pero los datos se guardan cifrados en el sitio. Esto
|
||||
# protege información privada en repositorios públicos, pero no la
|
||||
|
|
|
@ -21,6 +21,8 @@ class Usuarie < ApplicationRecord
|
|||
has_many :blazer_audits, foreign_key: 'user_id', class_name: 'Blazer::Audit'
|
||||
has_many :blazer_queries, foreign_key: 'creator_id', class_name: 'Blazer::Query'
|
||||
|
||||
self.filter_attributes += [/\Aemail\z/, /\Aencrypted_password\z/]
|
||||
|
||||
def name
|
||||
email.split('@', 2).first
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue