Class: Renalware::LowClearance::DashboardPresenter
- Inherits:
-
Object
- Object
- Renalware::LowClearance::DashboardPresenter
- Defined in:
- app/presenters/renalware/low_clearance/dashboard_presenter.rb
Instance Method Summary collapse
Instance Method Details
#profile ⇒ Object
12 13 14 |
# File 'app/presenters/renalware/low_clearance/dashboard_presenter.rb', line 12 def profile patient.profile || patient.build_profile end |
#profile_policy ⇒ Object
16 17 18 |
# File 'app/presenters/renalware/low_clearance/dashboard_presenter.rb', line 16 def profile_policy Pundit.policy!(user, profile) end |