Sha256: 58bb531fe33f1192bb1b2fb4b6c016d534a5ddbf32463ba527d34ace9ecb2f35
Contents?: true
Size: 520 Bytes
Versions: 24
Compression:
Stored size: 520 Bytes
Contents
require "renalware/admissions" require "collection_presenter" module Renalware module Admissions class PatientAdmissionsController < BaseController include Renalware::Concerns::Pageable def index admissions = Admission .where(patient_id: patient.id).page(page).per(per_page) .order(admitted_on: :desc) authorize admissions render locals: { admissions: CollectionPresenter.new(admissions, AdmissionPresenter) } end end end end
Version data entries
24 entries across 24 versions & 1 rubygems