Sha256: 8dbb892e9ccf5c64ebc58783d023b5f6f49212b107929713059b51df5f3da5ef
Contents?: true
Size: 596 Bytes
Versions: 158
Compression:
Stored size: 596 Bytes
Contents
# frozen_string_literal: true module Renalware module Accesses class ProfilePresenter < DumbDelegator def formed_on ::I18n.l(super) end def started_on ::I18n.l(super) end def terminated_on ::I18n.l(super) end def side super.try(:text) end def plan_type current_plan.plan_type.to_s end def plan_date current_plan.created_at end private def current_plan @current_plan ||= patient.current_plan || NullObject.instance end end end end
Version data entries
158 entries across 158 versions & 1 rubygems