add an email method to expert model
This commit is contained in:
parent
00ee6faadb
commit
85242e118b
1 changed files with 4 additions and 0 deletions
|
@ -8,4 +8,8 @@
|
|||
#
|
||||
class Expert < ApplicationRecord
|
||||
has_one :user
|
||||
|
||||
def email
|
||||
user.email
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue