demarches-normaliennes/app/models/expert.rb

16 lines
275 B
Ruby
Raw Normal View History

# == Schema Information
#
# Table name: experts
#
# id :bigint not null, primary key
# created_at :datetime not null
# updated_at :datetime not null
#
class Expert < ApplicationRecord
has_one :user
2021-01-25 13:01:13 +01:00
def email
user.email
end
end