Class: Organizations::OrganizationsFinder

Inherits:
Object
  • Object
show all
Defined in:
app/finders/organizations/organizations_finder.rb

Direct Known Subclasses

UserOrganizationsFinder

Instance Method Summary collapse

Constructor Details

#initialize(current_user, params = {}) ⇒ OrganizationsFinder

Returns a new instance of OrganizationsFinder.



11
12
13
14
# File 'app/finders/organizations/organizations_finder.rb', line 11

def initialize(current_user, params = {})
  @current_user = current_user
  @params = params
end

Instance Method Details

#executeObject



16
17
18
# File 'app/finders/organizations/organizations_finder.rb', line 16

def execute
  filter_organizations(base_scope)
end