demarches-normaliennes/app/helpers/notice_url_helper.rb

10 lines
204 B
Ruby
Raw Normal View History

2020-08-05 18:41:16 +02:00
module NoticeURLHelper
2018-04-11 14:35:52 +02:00
def notice_url(procedure)
if procedure.notice.attached?
url_for(procedure.notice)
elsif procedure.lien_notice.present?
procedure.lien_notice
end
end
end