Sha256: 44e6204a3f53a1c476f0d103b7df7e2c244290ab3ff733330aae18d3878fc17d
Contents?: true
Size: 449 Bytes
Versions: 114
Compression:
Stored size: 449 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/letters" module Renalware module Hospitals class WardPresenter < SimpleDelegator def title code.blank? ? name : "#{name} (#{code})" end def title_including_unit "#{title} at #{hospital_unit.unit_code}" end def self.units_with_wards Hospitals::Unit.eager_load(:wards).merge(Hospitals::Ward.active) end end end end
Version data entries
114 entries across 114 versions & 1 rubygems