From 586e7970478d121b10c0d83989fb03b6e880e0db Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Sat, 6 Apr 2013 01:41:49 -0400 Subject: [PATCH] Only show alerts for current user --- app/controllers/alerts_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/alerts_controller.rb b/app/controllers/alerts_controller.rb index 184bf1d..a4e61d4 100644 --- a/app/controllers/alerts_controller.rb +++ b/app/controllers/alerts_controller.rb @@ -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