adds case when topic on notifications controller

This commit is contained in:
decabeza
2017-10-20 17:05:23 +02:00
parent 3daf957813
commit 796fe333e3

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