Only show alerts for current user
This commit is contained in:
parent
aec687e908
commit
586e797047
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue