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
@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