Sha256: abcde54b263f7b9f49774cb8db9d2dd8f5304ce07ce5533179fe2502c55e7790

Contents?: true

Size: 375 Bytes

Versions: 3

Compression:

Stored size: 375 Bytes

Contents

module Comee
  module Core
    class ProductsController < ApplicationController
      include Common

      def index
        super do
          products = Product.leafs
          products.then(&paginate)
        end
      end

      private

      def model_params
        params.required(:payload).permit(:code, :name, :description, :parent_id)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comee_core-0.1.43 app/controllers/comee/core/products_controller.rb
comee_core-0.1.42 app/controllers/comee/core/products_controller.rb
comee_core-0.1.41 app/controllers/comee/core/products_controller.rb