demarches-normaliennes/app/helpers/notice_url_helper.rb
Pierre de La Morinerie 7d1c79bf4b zeitwerk: Url -> URL
2021-02-09 13:07:30 +01: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