5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 15:46:22 +00:00

fix: los atributos filtrados son por modelo

This commit is contained in:
f 2024-04-15 17:28:30 -03:00
parent 83add8dd7d
commit 2eb3145e1c
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View file

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

View file

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