Class: Dunlop::ExecutionBatchesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/dunlop/execution_batches_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#store_or_reset_params_q

Instance Method Details

#indexObject



4
5
6
7
8
# File 'app/controllers/dunlop/execution_batches_controller.rb', line 4

def index
  authorize! :index, Dunlop::ExecutionBatch
  @batches = Dunlop::ExecutionBatch.order(created_at: :desc).page(params[:page])
  respond_with(@batches)
end

#showObject



10
11
12
13
14
# File 'app/controllers/dunlop/execution_batches_controller.rb', line 10

def show
  @record = Dunlop::ExecutionBatch.find(params[:id])
  authorize! :show, @record
  respond_with(@record)
end