Class: Batches::RequestsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/batches/requests_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



7
8
9
10
# File 'app/controllers/batches/requests_controller.rb', line 7

def index
  requests = Batch.find(params[:batch_id]).requests
  respond_to { |format| format.xml { render xml: requests.to_xml } }
end