Added missing action in report controller

This commit is contained in:
Lukas Matt 2014-03-21 09:37:21 -04:00
parent 2e36f8d375
commit 719edcd1a7

View file

@ -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