Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Matt <lukas@zauberstuhl.de>2014-03-21 17:37:21 +0400
committerLukas Matt <lukas@zauberstuhl.de>2014-05-15 15:23:43 +0400
commit719edcd1a7cb79827935fced10a922a037af3658 (patch)
tree7202933f3d9e175068ceefa9a4133b7c7a69d8d4
parent2e36f8d375cbf36837d4c4162522b9f751b8150a (diff)
Added missing action in report controller
-rw-r--r--app/controllers/report_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/report_controller.rb b/app/controllers/report_controller.rb
index 7e379f343..001ad7916 100644
--- a/app/controllers/report_controller.rb
+++ b/app/controllers/report_controller.rb
@@ -29,8 +29,10 @@ class ReportController < ApplicationController
def create
if current_user.reports.create! report_params
flash.now[:notice] = I18n.t 'report.status.created'
+ render :nothing => true, :status => 200
else
flash.now[:error] = I18n.t 'report.status.failed'
+ render :nothing => true, :status => 409
end
end