Class: Manageiq::OrderItemsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/manageiq/order_items_controller.rb

Instance Method Summary collapse

Instance Method Details

#provision_updateObject



39
40
41
42
43
44
# File 'app/controllers/manageiq/order_items_controller.rb', line 39

def provision_update
  authorize @order_item

  @order_item.update_attributes order_item_params_for_update
  respond_with @order_item
end

#start_serviceObject



11
12
13
14
15
# File 'app/controllers/manageiq/order_items_controller.rb', line 11

def start_service
  authorize OrderItem
  # TODO: Direct ManageIQ to pass along a start request
  render nothing: true, status: :ok
end

#stop_serviceObject



20
21
22
23
24
# File 'app/controllers/manageiq/order_items_controller.rb', line 20

def stop_service
  authorize OrderItem
  # TODO: Direct ManageIQ to pass along a stop request
  render nothing: true, status: :ok
end