Commit 6d713e84e185f60b00c38e792d11df27ed110605
Committed by
Dmitriy Zaporozhets
1 parent
7403afea
Exists in
master
and in
4 other branches
remove unused code
Showing
1 changed file
with
1 additions
and
7 deletions
Show diff stats
app/controllers/admin/teams_controller.rb
@@ -6,13 +6,7 @@ class Admin::TeamsController < Admin::ApplicationController | @@ -6,13 +6,7 @@ class Admin::TeamsController < Admin::ApplicationController | ||
6 | end | 6 | end |
7 | 7 | ||
8 | def show | 8 | def show |
9 | - @projects = Project.scoped | ||
10 | - @projects = @projects.without_team(user_team) if user_team.projects.any? | ||
11 | - #@projects.reject!(&:empty_repo?) | ||
12 | - | ||
13 | - @users = User.active | ||
14 | - @users = @users.not_in_team(user_team) if user_team.members.any? | ||
15 | - @users = UserDecorator.decorate @users | 9 | + user_team |
16 | end | 10 | end |
17 | 11 | ||
18 | def new | 12 | def new |