summaryrefslogtreecommitdiff
path: root/app/controllers/alerts_controller.rb
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-23 23:30:40 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-23 23:30:40 -0400
commit1429cd41bb4af3429f28dc97efd6994433ebde7b (patch)
tree5db4b36315bd4d6cab60263bbf8a8180dec3fee6 /app/controllers/alerts_controller.rb
parent081b7cb82d5869bc43605223c301f7fed8dd50e2 (diff)
parenta6f801b7f5a2b9ca1b61ecc305a31f76be8c8238 (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app/controllers/alerts_controller.rb')
-rw-r--r--app/controllers/alerts_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/alerts_controller.rb b/app/controllers/alerts_controller.rb
index 333022a..6ab3663 100644
--- a/app/controllers/alerts_controller.rb
+++ b/app/controllers/alerts_controller.rb
@@ -23,7 +23,7 @@ class AlertsController < ApplicationController
# POST /alerts.json
def create
@alert = Alert.new(alert_params)
-
+ @alert.author = current_user
respond_to do |format|
if @alert.save
format.html { redirect_to @alert, notice: 'Alert was successfully created.' }