Class: Renalware::Patients::BannerPresenter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
app/presenters/renalware/patients/banner_presenter.rb

Instance Method Summary collapse

Instance Method Details

#current_modality_descriptionObject



8
9
10
11
12
13
14
# File 'app/presenters/renalware/patients/banner_presenter.rb', line 8

def current_modality_description
  if current_modality.blank? || current_modality.new_record?
    I18n.t("renalware.modalities.none")
  else
    current_modality.description.augmented_name_for(__getobj__)
  end
end