Sha256: a0676d1e7e368c16bd768f05e42b786f714d5946887461c1af458cf61c817d6f

Contents?: true

Size: 500 Bytes

Versions: 14

Compression:

Stored size: 500 Bytes

Contents

module Comee
  module Core
    class ProductLookupsController < ApplicationController
      include Common

      def index
        super do
          ProductLookup.includes(:product).all
        end
      end

      def filter
        data = ProductLookup.ransack(params[:q]).result
        render_content(data)
      end

      private

      def model_params
        params.required(:payload).permit(:code, :itemable_id, :itemable_type, :item_description, :product_id)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
comee_core-0.2.10 app/controllers/comee/core/product_lookups_controller.rb
comee_core-0.2.9 app/controllers/comee/core/product_lookups_controller.rb
comee_core-0.2.8 app/controllers/comee/core/product_lookups_controller.rb
comee_core-0.2.7 app/controllers/comee/core/product_lookups_controller.rb
comee_core-0.2.6 app/controllers/comee/core/product_lookups_controller.rb
comee_core-0.2.5 app/controllers/comee/core/product_lookups_controller.rb
comee_core-0.2.4 app/controllers/comee/core/product_lookups_controller.rb
comee_core-0.2.3 app/controllers/comee/core/product_lookups_controller.rb
comee_core-0.2.2 app/controllers/comee/core/product_lookups_controller.rb
comee_core-0.2.1 app/controllers/comee/core/product_lookups_controller.rb
comee_core-0.2.0 app/controllers/comee/core/product_lookups_controller.rb
comee_core-0.1.99 app/controllers/comee/core/product_lookups_controller.rb
comee_core-0.1.98 app/controllers/comee/core/product_lookups_controller.rb
comee_core-0.1.97 app/controllers/comee/core/product_lookups_controller.rb