Class: Renalware::Patients::MessagesComponent
Instance Method Summary
collapse
#css_toggle_link_to, #row_toggler, #rows_toggler, #table_toggler, #td_toggle_row, #th_toggle_all_rows, #toggler
#policy, #renalware
Instance Method Details
22
23
24
25
26
27
28
|
# File 'app/components/renalware/patients/messages_component.rb', line 22
def formatted_title(title)
if .items < .count
"#{title} (#{.items} of #{.count})"
else
"#{title} (#{.count})"
end
end
|
#messages ⇒ Object
17
18
19
20
|
# File 'app/components/renalware/patients/messages_component.rb', line 17
def messages
load_messages unless @messages
@messages
end
|
12
13
14
15
|
# File 'app/components/renalware/patients/messages_component.rb', line 12
def
load_messages unless @pagination
@pagination
end
|