Class: Workarea::Admin::LegacyOrdersController

Inherits:
Admin::ApplicationController
  • Object
show all
Defined in:
app/controllers/workarea/admin/legacy_orders_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



4
5
6
7
# File 'app/controllers/workarea/admin/legacy_orders_controller.rb', line 4

def index
  search = Search::AdminLegacyOrders.new(params)
  @search = Admin::OrderSearchViewModel.new(search, view_model_options)
end

#showObject



9
10
11
12
13
14
# File 'app/controllers/workarea/admin/legacy_orders_controller.rb', line 9

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