diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-08 17:03:30 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-03-08 17:03:30 -0700 |
commit | 9b3e156e43b8a14e4eb294a47bda6a477c8573b0 (patch) | |
tree | 4e1de7b6835ac646b34761b5814e4afe250f3f8c /app/controllers/profiles | |
parent | 8b551ee31858db9c5da1ff5245359151d5b71211 (diff) | |
download | gitlab-ce-9b3e156e43b8a14e4eb294a47bda6a477c8573b0.tar.gz |
Move profile groups page to dashboard
Diffstat (limited to 'app/controllers/profiles')
-rw-r--r-- | app/controllers/profiles/groups_controller.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/app/controllers/profiles/groups_controller.rb b/app/controllers/profiles/groups_controller.rb deleted file mode 100644 index ce9dd50df67..00000000000 --- a/app/controllers/profiles/groups_controller.rb +++ /dev/null @@ -1,23 +0,0 @@ -class Profiles::GroupsController < ApplicationController - layout "profile" - - def index - @user_groups = current_user.group_members.page(params[:page]).per(20) - end - - def leave - @users_group = group.group_members.where(user_id: current_user.id).first - if can?(current_user, :destroy, @users_group) - @users_group.destroy - redirect_to(profile_groups_path, info: "You left #{group.name} group.") - else - return render_403 - end - end - - private - - def group - @group ||= Group.find_by(path: params[:id]) - end -end |