Sha256: 4dc8caba49897dc83a61ca4f39c7c27b3bf6c8d3f34db49aca6ec08d72ae2e17

Contents?: true

Size: 596 Bytes

Versions: 28

Compression:

Stored size: 596 Bytes

Contents

module Workarea
  class Admin::OrdersController < Admin::ApplicationController
    required_permissions :orders

    before_action :find_order, except: :index
    after_action :track_index_filters, only: :index

    def index
      search = Search::AdminOrders.new(
        params.merge(autocomplete: request.xhr?)
      )

      @search = Admin::OrderSearchViewModel.new(search, view_model_options)
    end

    def show
    end

    def timeline
    end

    def fraud
    end

    private

    def find_order
      @order = Admin::OrderViewModel.new(Order.find(params[:id]))
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-admin-3.5.27 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.26 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.25 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.23 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.22 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.21 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.20 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.19 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.18 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.17 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.16 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.15 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.14 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.13 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.12 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.11 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.10 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.9 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.8 app/controllers/workarea/admin/orders_controller.rb
workarea-admin-3.5.7 app/controllers/workarea/admin/orders_controller.rb