Class: Renalware::Letters::CompletedBatchesController
- Inherits:
-
BaseController
- Object
- ApplicationController
- ApplicationController
- BaseController
- BaseController
- Renalware::Letters::CompletedBatchesController
- Includes:
- Concerns::Pageable
- Defined in:
- app/controllers/renalware/letters/completed_batches_controller.rb
Instance Method Summary collapse
- #create ⇒ Object
-
#new ⇒ Object
Renders a modal asking the user if they want to complete (ie mark as printed) the batch.
Methods inherited from BaseController
Methods inherited from BaseController
Instance Method Details
#create ⇒ Object
17 18 19 20 21 |
# File 'app/controllers/renalware/letters/completed_batches_controller.rb', line 17 def create batch = Printing::CompleteBatch.new(user: current_user, batch: batch).call render layout: false, locals: { batch: batch } end |
#new ⇒ Object
Renders a modal asking the user if they want to complete (ie mark as printed) the batch.
12 13 14 15 |
# File 'app/controllers/renalware/letters/completed_batches_controller.rb', line 12 def new batch = render layout: false, locals: { batch: batch } end |