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

View file

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