Sha256: 2f76852729495770ff38efd27ada283227a6bc241a690743f35293a7ed6c1eca

Contents?: true

Size: 396 Bytes

Versions: 38

Compression:

Stored size: 396 Bytes

Contents

module Comee
  module Core
    class PurchaseOrdersController < ApplicationController
      include Common

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

      private

      def model_params
        params.required(:payload).permit(:supplier_id, :order_date, :status, :delivery_address)
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
comee_core-0.2.34 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.33 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.32 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.31 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.30 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.29 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.28 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.27 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.26 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.25 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.24 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.23 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.22 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.21 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.20 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.19 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.18 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.17 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.16 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.15 app/controllers/comee/core/purchase_orders_controller.rb