9 lines
204 B
Ruby
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
|