diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-03-17 01:44:33 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-03-17 01:44:33 +0300 |
commit | ec20fdf366843e60ed30abb5322c3c1b8f471b4a (patch) | |
tree | fd33118e0af74924bcb20a1696d91f85f6cd463c /app/controllers/users_controller.rb | |
parent | de251bcf6d0f1db8858fa38ac14e108c1b9ea00f (diff) |
Code improvements and add Create group service
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r-- | app/controllers/users_controller.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 7b32572f822..481d00d6aae 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -3,13 +3,6 @@ class UsersController < ApplicationController before_action :set_user def show - @contributed_projects = contributed_projects.joined(@user).reject(&:forked?) - - @projects = PersonalProjectsFinder.new(@user).execute(current_user) - @projects = @projects.page(params[:page]).per(PER_PAGE) - - @groups = JoinedGroupsFinder.new(@user).execute(current_user) - respond_to do |format| format.html @@ -115,7 +108,7 @@ class UsersController < ApplicationController end def load_groups - @groups = @user.groups.order_id_desc + @groups = JoinedGroupsFinder.new(@user).execute(current_user) end def projects_for_current_user |