Class: Dunlop::ExecutionBatchesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ApplicationController
- Dunlop::ExecutionBatchesController
- Defined in:
- app/controllers/dunlop/execution_batches_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
4 5 6 7 8 |
# File 'app/controllers/dunlop/execution_batches_controller.rb', line 4 def index :index, Dunlop::ExecutionBatch @batches = Dunlop::ExecutionBatch.order(created_at: :desc).page(params[:page]) respond_with(@batches) end |
#show ⇒ Object
10 11 12 13 14 |
# File 'app/controllers/dunlop/execution_batches_controller.rb', line 10 def show @record = Dunlop::ExecutionBatch.find(params[:id]) :show, @record respond_with(@record) end |