Class: Organizations::OrganizationUsersFinder
- Inherits:
-
Object
- Object
- Organizations::OrganizationUsersFinder
- Defined in:
- app/finders/organizations/organization_users_finder.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(organization:, current_user:) ⇒ OrganizationUsersFinder
constructor
A new instance of OrganizationUsersFinder.
Constructor Details
#initialize(organization:, current_user:) ⇒ OrganizationUsersFinder
Returns a new instance of OrganizationUsersFinder.
10 11 12 13 |
# File 'app/finders/organizations/organization_users_finder.rb', line 10 def initialize(organization:, current_user:) @organization = organization @current_user = current_user end |
Instance Method Details
#execute ⇒ Object
15 16 17 18 19 |
# File 'app/finders/organizations/organization_users_finder.rb', line 15 def execute return User.none if organization.nil? || ! all_organization_users end |