demarches-normaliennes/app/helpers/notice_url_helper.rb

10 lines
204 B
Ruby
Raw Normal View History

2018-04-11 14:35:52 +02:00
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