Sha256: 71d80ce6b108256bbdcf9caa4ea8b7b33669dbae043724eaa24aff89397eb071

Contents?: true

Size: 429 Bytes

Versions: 4

Compression:

Stored size: 429 Bytes

Contents

module Workarea
  module Admin
    class LegacyOrdersController < Admin::ApplicationController
      def index
        search = Search::AdminLegacyOrders.new(params)
        @search = Admin::OrderSearchViewModel.new(search, view_model_options)
      end

      def show
        @order = Admin::LegacyOrderViewModel.wrap(
          LegacyOrder.find(params[:id]),
          view_model_options
        )
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
workarea-legacy_orders-2.0.3 app/controllers/workarea/admin/legacy_orders_controller.rb
workarea-legacy_orders-2.0.2 app/controllers/workarea/admin/legacy_orders_controller.rb
workarea-legacy_orders-2.0.1 app/controllers/workarea/admin/legacy_orders_controller.rb
workarea-legacy_orders-2.0.0 app/controllers/workarea/admin/legacy_orders_controller.rb