redirects notification show to notifiable
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user