Class: Renalware::Problems::SummaryPart

Inherits:
SummaryPart show all
Defined in:
app/presenters/renalware/problems/summary_part.rb

Constant Summary

Constants inherited from SummaryPart

SummaryPart::DATE_FORMAT

Instance Method Summary collapse

Methods inherited from SummaryPart

#cache?, #render?

Instance Method Details

#cache_keyObject



12
13
14
# File 'app/presenters/renalware/problems/summary_part.rb', line 12

def cache_key
  [patient.cache_key, patient.problems.cache_key].join("~")
end

#problemsObject



8
9
10
# File 'app/presenters/renalware/problems/summary_part.rb', line 8

def problems
  @problems ||= patient.problems.ordered
end

#to_partial_pathObject



16
17
18
# File 'app/presenters/renalware/problems/summary_part.rb', line 16

def to_partial_path
  "renalware/problems/problems/summary_part"
end