summaryrefslogtreecommitdiffstats
path: root/app/controllers/groups_controller.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-28 14:42:03 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-28 14:42:03 +0000
commit2d4dd6da8f8884e1a73f10cc4b81447ff8e4a30f (patch)
tree9b361a2b1060a722e896ebfa942ec4e4c0864214 /app/controllers/groups_controller.rb
parentffaa46fea1f5c5657711ffe04dd1427ed7eb1beb (diff)
downloadredmine-2d4dd6da8f8884e1a73f10cc4b81447ff8e4a30f.tar.gz
redmine-2d4dd6da8f8884e1a73f10cc4b81447ff8e4a30f.zip
shorten long line of GroupsController
git-svn-id: http://svn.redmine.org/redmine/trunk@20217 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/groups_controller.rb')
-rw-r--r--app/controllers/groups_controller.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index 2a8d59027..020931599 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -66,11 +66,14 @@ class GroupsController < ApplicationController
respond_to do |format|
if @group.save
- format.html {
+ format.html do
flash[:notice] = l(:notice_successful_create)
redirect_to(params[:continue] ? new_group_path : groups_path)
- }
- format.api { render :action => 'show', :status => :created, :location => group_url(@group) }
+ end
+ format.api do
+ render(:action => 'show', :status => :created,
+ :location => group_url(@group))
+ end
else
format.html { render :action => "new" }
format.api { render_validation_errors(@group) }