cast 'true' to true and 'false' to false in case of boolean column addition, fixes #1613

This commit is contained in:
Umar Sheikh 2017-11-07 15:01:12 +05:00
parent e75ce991cb
commit 749fe8df5e

View file

@ -108,6 +108,11 @@ class ObjectManagerAttributesController < ApplicationController
params[:data_option][:options][true] = params[:data_option][:options][:true]
params[:data_option][:options].delete(:true)
end
if params[:data_option][:default] == 'true'
params[:data_option][:default] = true
elsif params[:data_option][:default] == 'false'
params[:data_option][:default] = false
end
end
end
if params[:data_option] && !params[:data_option].key?(:default)