From de8eed0a19b5bb9cd5798bff71917f5bf8ed8126 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Wed, 14 Dec 2016 15:27:24 +0100 Subject: [PATCH] Fix hound warning [SCI-783] --- app/controllers/custom_fields_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/custom_fields_controller.rb b/app/controllers/custom_fields_controller.rb index 27e585664..04b64a91c 100644 --- a/app/controllers/custom_fields_controller.rb +++ b/app/controllers/custom_fields_controller.rb @@ -66,7 +66,10 @@ class CustomFieldsController < ApplicationController respond_to do |format| format.json do if @custom_field.destroy - SamplesTable.update_samples_table_state(@del_custom_field, params[:custom_field][:column_index]) + SamplesTable.update_samples_table_state( + @del_custom_field, + params[:custom_field][:column_index] + ) render json: { status: :ok } else render json: { status: :unprocessable_entity }