diff --git a/app/controllers/v1/collections_controller.rb b/app/controllers/v1/collections_controller.rb index c419f856f07d27793de8a2708f6d210bac89a68a..0af933b464c31bb0e753c9097399f5564fc0780d 100644 --- a/app/controllers/v1/collections_controller.rb +++ b/app/controllers/v1/collections_controller.rb @@ -43,7 +43,7 @@ class V1::CollectionsController < ApplicationController # PUT/PATCH /v1/users/1.json def update if @collection.update(collection_params) - @collection.add_items(extra_params[:items]) unless extra_params[:items].is_nil? + @collection.add_items(extra_params[:items]) unless extra_params[:items].nil? render json: @collection, status: :ok else render json: @collection.errors, status: :unprocessable_entity