Merge pull request #2094 from consul/topic-notifications

Topic notifications
This commit is contained in:
Alberto García
2017-10-25 11:08:00 +02:00
committed by GitHub
2 changed files with 21 additions and 0 deletions

View File

@@ -29,6 +29,8 @@ class NotificationsController < ApplicationController
case notification.linkable_resource.class.name
when "Budget::Investment"
budget_investment_path @notification.linkable_resource.budget, @notification.linkable_resource
when "Topic"
community_topic_path @notification.linkable_resource.community, @notification.linkable_resource
else
url_for @notification.linkable_resource
end