Sha256: 27f54ff173b9c1ee4a16d8cd6ce61aea1a71f4f6cc5d600819ef0d314288b00c

Contents?: true

Size: 1.02 KB

Versions: 46

Compression:

Stored size: 1.02 KB

Contents

# == Schema Information
#
# Table name: easy_ml_columns
#
#  id                  :bigint           not null, primary key
#  dataset_id          :bigint           not null
#  name                :string           not null
#  description         :string
#  datatype            :string
#  polars_datatype     :string
#  is_target           :boolean
#  hidden              :boolean          default(FALSE)
#  drop_if_null        :boolean          default(FALSE)
#  preprocessing_steps :json
#  sample_values       :json
#  statistics          :json
#  created_at          :datetime         not null
#  updated_at          :datetime         not null
#
module EasyML
  class ColumnsController < ApplicationController
    def update
      @column = EasyML::Column.find(params[:id])

      if @column.update(column_params)
        head :ok
      else
        render json: { errors: @column.errors }, status: :unprocessable_entity
      end
    end

    private

    def column_params
      params.require(:column).permit(:hidden)
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
easy_ml-0.2.0.pre.rc47 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc46 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc45 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc44 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc43 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc41 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc40 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc39 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc38 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc37 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc36 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc35 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc34 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc33 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc32 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc31 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc30 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc29 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc28 app/controllers/easy_ml/columns_controller.rb
easy_ml-0.2.0.pre.rc27 app/controllers/easy_ml/columns_controller.rb