demarches-normaliennes/app/models/avis.rb
2017-05-29 11:44:28 +02:00

8 lines
152 B
Ruby

class Avis < ApplicationRecord
belongs_to :dossier
belongs_to :gestionnaire
def email_to_display
gestionnaire.try(:email) || email
end
end