Sha256: 8904f8cecbd2f36668c97a9bfeac27f158a9899f1f71b1a6d1814b15757ef9ad

Contents?: true

Size: 462 Bytes

Versions: 7

Compression:

Stored size: 462 Bytes

Contents

module Comee
  module Core
    class ItemStatusesController < ApplicationController
      include Common

      def filter
        @item_statuses = Comee::Core::ItemStatus.ransack(params[:q]).result
        render json: {success: true, data: serialize(@item_statuses)}
      end

      private

      def model_params
        params.require(:payload).permit(:hash_code, :status, :status_date, :remark, :sales_order_item_id, :details)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comee_core-0.1.66 app/controllers/comee/core/item_statuses_controller.rb
comee_core-0.1.65 app/controllers/comee/core/item_statuses_controller.rb
comee_core-0.1.64 app/controllers/comee/core/item_statuses_controller.rb
comee_core-0.1.63 app/controllers/comee/core/item_statuses_controller.rb
comee_core-0.1.62 app/controllers/comee/core/item_statuses_controller.rb
comee_core-0.1.61 app/controllers/comee/core/item_statuses_controller.rb
comee_core-0.1.60 app/controllers/comee/core/item_statuses_controller.rb