Sha256: 9b2fad1a3a62729fe6661f8e467014961deaae3b6490d85a9cafc61ce81f167d

Contents?: true

Size: 418 Bytes

Versions: 31

Compression:

Stored size: 418 Bytes

Contents

module Comee
  module Core
    class ProductTypesController < ApplicationController
      include Common

      def products
        products = Product.where(product_type_id: params[:id])
        render json: {success: true, data: serialize(products)}
      end

      private

      def model_params
        params.require(:payload).permit(:code, :name, :description, metadata_schema: {})
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
comee_core-0.1.40 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.39 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.38 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.37 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.36 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.35 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.34 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.33 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.32 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.31 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.30 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.29 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.28 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.27 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.26 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.25 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.24 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.23 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.22 app/controllers/comee/core/product_types_controller.rb
comee_core-0.1.21 app/controllers/comee/core/product_types_controller.rb