adds url for Budget::Investment to mailer_helper

This commit is contained in:
Juanjo Bazán
2017-01-10 22:24:00 +01:00
parent 05ca715dee
commit 7ff27997a7

View File

@@ -3,6 +3,7 @@ module MailerHelper
def commentable_url(commentable)
return debate_url(commentable) if commentable.is_a?(Debate)
return proposal_url(commentable) if commentable.is_a?(Proposal)
return budget_investment_url(commentable.budget_id, commentable) if commentable.is_a?(Budget::Investment)
end
end