Class: Renalware::HD::HistoricalProfilesController
- Inherits:
-
BaseController
- Object
- ApplicationController
- ApplicationController
- BaseController
- BaseController
- Renalware::HD::HistoricalProfilesController
- Includes:
- PresenterHelper
- Defined in:
- app/controllers/renalware/hd/historical_profiles_controller.rb
Instance Method Summary collapse
Methods included from PresenterHelper
Methods inherited from BaseController
Instance Method Details
#index ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'app/controllers/renalware/hd/historical_profiles_controller.rb', line 20 def index profiles = Profile.deleted.ordered.for_patient(patient) profiles render locals: { patient: patient, profiles: present(profiles, ProfilePresenter) } end |
#show ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'app/controllers/renalware/hd/historical_profiles_controller.rb', line 11 def show profile = Profile.deleted.for_patient(patient).find_by!(id: params[:id]) profile render locals: { patient: patient, profile: ProfilePresenter.new(profile) } end |