Class: Renalware::Patients::BookmarksComponent

Inherits:
ApplicationComponent show all
Defined in:
app/components/renalware/patients/bookmarks_component.rb

Instance Method Summary collapse

Methods inherited from ApplicationComponent

#policy, #renalware

Instance Method Details

#bookmarksObject



8
9
10
11
12
13
14
15
# File 'app/components/renalware/patients/bookmarks_component.rb', line 8

def bookmarks
  @bookmarks ||= begin
    Patients.cast_user(current_user)
      .bookmarks
      .ordered
      .includes(patient: [current_modality: :description])
  end
end