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.14 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.13 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.12 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.11 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.10 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.9 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.8 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.7 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.6 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.5 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.4 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.3 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.2 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.1 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.2.0 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.1.99 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.1.98 app/controllers/comee/core/purchase_orders_controller.rb
comee_core-0.1.97 app/controllers/comee/core/purchase_orders_controller.rb