Class: Dashboard::GroupsController

Inherits:
ApplicationController
  • Object
show all
Includes:
GroupTree
Defined in:
app/controllers/dashboard/groups_controller.rb

Instance Method Summary collapse

Methods included from GroupTree

#render_group_tree

Instance Method Details

#indexObject



12
13
14
15
16
17
18
19
20
21
# File 'app/controllers/dashboard/groups_controller.rb', line 12

def index
  groups = GroupsFinder.new(
    current_user,
    all_available: false,
    organization: Current.organization,
    active: safe_params[:active]
  ).execute

  render_group_tree(groups)
end