Sha256: 2e23952c97e64f0a15f938da55413d639aee459e2d164c1009e458f247e67599

Contents?: true

Size: 476 Bytes

Versions: 25

Compression:

Stored size: 476 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module Patients
    class BookmarksComponent < ApplicationComponent
      attr_reader :current_user

      def initialize(current_user:)
        @current_user = current_user
      end

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
renalware-core-2.0.159 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.158 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.157 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.156 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.155 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.153 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.152 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.151 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.149 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.148 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.147 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.146 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.145 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.144 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.143 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.142 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.141 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.140 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.139 app/components/renalware/patients/bookmarks_component.rb
renalware-core-2.0.138 app/components/renalware/patients/bookmarks_component.rb