read_all button on notifications page redirects to stream.

This commit is contained in:
Steven Fuchs 2012-01-25 19:03:31 -05:00
parent 5f705775cd
commit 9e337fc8b0

View file

@ -52,7 +52,7 @@ class NotificationsController < ApplicationController
def read_all
Notification.where(:recipient_id => current_user.id).update_all(:unread => false)
respond_to do |format|
format.html { redirect_to notifications_path }
format.html { redirect_to multi_stream_path }
format.xml { render :xml => {}.to_xml }
format.json { render :json => {}.to_json }
end