Class: GroupProjectsFinder

Inherits:
UnionFinder show all
Defined in:
app/finders/group_projects_finder.rb

Instance Method Summary collapse

Methods inherited from UnionFinder

#find_union

Constructor Details

#initialize(group, options = {}) ⇒ GroupProjectsFinder

Returns a new instance of GroupProjectsFinder


2
3
4
5
# File 'app/finders/group_projects_finder.rb', line 2

def initialize(group, options = {})
  @group   = group
  @options = options
end

Instance Method Details

#execute(current_user = nil) ⇒ Object


7
8
9
10
# File 'app/finders/group_projects_finder.rb', line 7

def execute(current_user = nil)
  segments = group_projects(current_user)
  find_union(segments, Project)
end