mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 15:51:41 +00:00
Les usuaries tienen consultas
This commit is contained in:
parent
3a2ce1d47d
commit
7511afbf88
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,8 @@ class Usuarie < ApplicationRecord
|
||||||
|
|
||||||
has_many :roles
|
has_many :roles
|
||||||
has_many :sites, through: :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
|
def name
|
||||||
email.split('@', 2).first
|
email.split('@', 2).first
|
||||||
|
|
Loading…
Reference in a new issue