Les usuaries tienen consultas

This commit is contained in:
f 2021-08-02 17:51:35 -03:00
parent 3a2ce1d47d
commit 7511afbf88

View file

@ -11,6 +11,8 @@ class Usuarie < ApplicationRecord
has_many :roles
has_many :sites, through: :roles
has_many :blazer_audits, foreign_key: 'user_id', class_name: 'Blazer::Audit'
has_many :blazer_queries, foreign_key: 'creator_id', class_name: 'Blazer::Query'
def name
email.split('@', 2).first