Class: Workarea::Admin::LegacyOrdersController
- Inherits:
-
Admin::ApplicationController
- Object
- Admin::ApplicationController
- Workarea::Admin::LegacyOrdersController
- Defined in:
- app/controllers/workarea/admin/legacy_orders_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
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, ) end |
#show ⇒ Object
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]), ) end |