1
0
Fork 0

Only show alerts for current user

This commit is contained in:
Andrew Tomaka 2013-04-06 01:41:49 -04:00
parent aec687e908
commit 586e797047
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ class AlertsController < ApplicationController
# GET /alerts
# GET /alerts.json
def index
@alerts = Alert.all
@alerts = Alert.where("user_id = #{current_user.id}")
respond_to do |format|
format.html # index.html.erb