redirects notification show to notifiable

This commit is contained in:
Juanjo Bazán
2016-01-08 12:36:43 +01:00
parent 790d8de5b6
commit a976e16ef3

View File

@@ -9,7 +9,7 @@ class NotificationsController < ApplicationController
def show def show
@notification = current_user.notifications.find(params[:id]) @notification = current_user.notifications.find(params[:id])
redirect_to url_for(@notification.notifiable.commentable) redirect_to url_for(@notification.notifiable)
end end
def mark_all_as_read def mark_all_as_read