Lou 3 years ago
parent
commit
91636730ff
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app/controllers/api/v1/activities_controller.rb

+ 2
- 2
app/controllers/api/v1/activities_controller.rb View File

22
 
22
 
23
   def update
23
   def update
24
     if @activity.update(activity_params)
24
     if @activity.update(activity_params)
25
-      render json: @product
25
+      render json: @activity
26
     else
26
     else
27
-      render json: @product.erros, status: :unprocessable_entity
27
+      render json: @activity.errors, status: :unprocessable_entity
28
     end
28
     end
29
   end
29
   end
30
 
30
 

Loading…
Cancel
Save