From 8ddbc43576c1cebd652d6f3541574f0176794510 Mon Sep 17 00:00:00 2001 From: "Z.J. van de Weg" Date: Tue, 7 Feb 2017 08:24:57 +0100 Subject: Improve DRYness of views --- app/controllers/groups_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/controllers/groups_controller.rb') 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 -- cgit v1.2.1