demarches-normaliennes/app/helpers/notice_url_helper.rb
2018-04-12 10:44:58 +02:00

9 lines
204 B
Ruby

module NoticeUrlHelper
def notice_url(procedure)
if procedure.notice.attached?
url_for(procedure.notice)
elsif procedure.lien_notice.present?
procedure.lien_notice
end
end
end