Class: Renalware::Medications::DrugTypes::PrescriptionsController

Inherits:
BaseController show all
Includes:
Concerns::Pageable
Defined in:
app/controllers/renalware/medications/drug_types/prescriptions_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#patient

Instance Method Details

#indexObject



13
14
15
16
17
18
19
# File 'app/controllers/renalware/medications/drug_types/prescriptions_controller.rb', line 13

def index
  authorize Prescription, :index?
  render :index, locals: {
    prescriptions: present_prescriptions,
    search: query.search
  }
end