summaryrefslogtreecommitdiff
path: root/app/controllers/alerts_controller.rb
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-04-23 22:50:29 -0400
committerguntasgrewal <guntasgrewal@gmail.com>2014-04-23 22:50:29 -0400
commit19b04a49d01af1917385c166501ef086eddae437 (patch)
tree9d557f3331b9070296d4de704a13b695677474ff /app/controllers/alerts_controller.rb
parent9afd5a4f7a86eeaab3fa8a0c25609ac7977e0489 (diff)
The users with permissions to send alerts can now create new alerts.
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.' }