diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-02-07 08:24:57 +0100 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-02-16 09:19:28 +0100 |
commit | 8ddbc43576c1cebd652d6f3541574f0176794510 (patch) | |
tree | 3dfe430f289db8a461220d26f19689013471d363 /app/controllers/groups_controller.rb | |
parent | b4244efaf1ab955e5900e87c3ec4e9465ba38bff (diff) | |
download | gitlab-ce-8ddbc43576c1cebd652d6f3541574f0176794510.tar.gz |
Improve DRYness of views
Diffstat (limited to 'app/controllers/groups_controller.rb')
-rw-r--r-- | app/controllers/groups_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index 63b37fb5eb3..b2a18f0e65d 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -29,6 +29,7 @@ class GroupsController < Groups::ApplicationController end def create + byebug @group = Groups::CreateService.new(current_user, group_params).execute if @group.persisted? @@ -81,6 +82,7 @@ class GroupsController < Groups::ApplicationController end def update + byebug if Groups::UpdateService.new(@group, current_user, group_params).execute redirect_to edit_group_path(@group), notice: "Group '#{@group.name}' was successfully updated." else @@ -143,7 +145,8 @@ class GroupsController < Groups::ApplicationController :share_with_group_lock, :visibility_level, :parent_id - :create_chat_team + :create_chat_team, + :chat_team_name ] end |