Class: GroupsFinder

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

Instance Method Summary collapse

Methods inherited from UnionFinder

#find_union

Instance Method Details

#execute(current_user = nil) ⇒ Object


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

def execute(current_user = nil)
  segments = all_groups(current_user)

  find_union(segments, Group).order_id_desc
end