Sha256: 37246a03e667876bb17d78dafbfe6d5f32791abf1f25d151a0b7054b8d9ad427

Contents?: true

Size: 300 Bytes

Versions: 2

Compression:

Stored size: 300 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module System
    class UsersAwaitingApprovalComponent < ApplicationComponent
      rattr_initialize [:current_user!]

      def users_needing_approval_count
        @users_needing_approval_count ||= User.unapproved.count
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/components/renalware/system/users_awaiting_approval_component.rb
renalware-core-2.1.0 app/components/renalware/system/users_awaiting_approval_component.rb