From 5f588a08f52e5bc8aff6f49aa0e70f338a0f50d6 Mon Sep 17 00:00:00 2001 From: Marcela Ribeiro de Oliveira <mro15@inf.ufpr.br> Date: Mon, 26 Feb 2018 09:30:53 -0300 Subject: [PATCH] ... --- app/controllers/v1/complaints_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/v1/complaints_controller.rb b/app/controllers/v1/complaints_controller.rb index 66125853..c6dc3b3e 100644 --- a/app/controllers/v1/complaints_controller.rb +++ b/app/controllers/v1/complaints_controller.rb @@ -39,7 +39,7 @@ class V1::ComplaintsController < ApplicationController ComplaintsMailer.new_complaint_received(@complaint, @current_user).deliver_now render json: @complaint, status: :created else - render json: complaint.errors, status: :unprocessable_entity + render json: @complaint.errors, status: :unprocessable_entity end end -- GitLab