Add email specs for Topic

This commit is contained in:
Angel Perez
2017-11-13 08:46:56 -04:00
parent 3605a43947
commit 4c110e8100
5 changed files with 46 additions and 2 deletions

View File

@@ -3,7 +3,8 @@ 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 community_topic_url(commentable.community_id, commentable) if commentable.is_a?(Topic)
return budget_investment_url(commentable.budget_id, commentable) if commentable.is_a?(Budget::Investment)
end
end
end