Fix typo
This commit is contained in:
parent
f29e840f58
commit
91636730ff
1 changed files with 2 additions and 2 deletions
|
|
@ -22,9 +22,9 @@ class Api::V1::ActivitiesController < ApplicationController
|
|||
|
||||
def update
|
||||
if @activity.update(activity_params)
|
||||
render json: @product
|
||||
render json: @activity
|
||||
else
|
||||
render json: @product.erros, status: :unprocessable_entity
|
||||
render json: @activity.errors, status: :unprocessable_entity
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue