redirects notification show to notifiable
This commit is contained in:
@@ -9,7 +9,7 @@ class NotificationsController < ApplicationController
|
||||
|
||||
def show
|
||||
@notification = current_user.notifications.find(params[:id])
|
||||
redirect_to url_for(@notification.notifiable.commentable)
|
||||
redirect_to url_for(@notification.notifiable)
|
||||
end
|
||||
|
||||
def mark_all_as_read
|
||||
|
||||
Reference in New Issue
Block a user