From f0c7a1c50c1e688e80be92f178dd72ac6e393efc Mon Sep 17 00:00:00 2001 From: f Date: Tue, 6 Sep 2022 15:20:06 -0300 Subject: [PATCH] guardar todo --- app/controllers/readings_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/readings_controller.rb b/app/controllers/readings_controller.rb index 058d701..103f3f0 100644 --- a/app/controllers/readings_controller.rb +++ b/app/controllers/readings_controller.rb @@ -28,7 +28,7 @@ class ReadingsController < ActionController::API end end - if reading.save + if raspberry.save render plain: reading.id, status: :ok else head :bad_request