diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-19 13:31:09 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-19 13:31:09 +0000 |
commit | fa2bb7284140906a90776aaea0777a012e0d0829 (patch) | |
tree | a936fdc7c786a84e5ed196e4146a49d5ecfe5290 /app/controllers | |
parent | b4cc30ec17891634ef7e4284e8f520c3b0dd46f0 (diff) | |
download | redmine-fa2bb7284140906a90776aaea0777a012e0d0829.tar.gz redmine-fa2bb7284140906a90776aaea0777a012e0d0829.zip |
remove spaces inside {} of GroupsController
git-svn-id: http://svn.redmine.org/redmine/trunk@20438 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/groups_controller.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index fb21e2f05..deaa72b63 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -75,8 +75,8 @@ class GroupsController < ApplicationController :location => group_url(@group)) end else - format.html { render :action => "new" } - format.api { render_validation_errors(@group) } + format.html {render :action => "new"} + format.api {render_validation_errors(@group)} end end end @@ -90,11 +90,11 @@ class GroupsController < ApplicationController respond_to do |format| if @group.save flash[:notice] = l(:notice_successful_update) - format.html { redirect_to_referer_or(groups_path) } - format.api { render_api_ok } + format.html {redirect_to_referer_or(groups_path)} + format.api {render_api_ok} else - format.html { render :action => "edit" } - format.api { render_validation_errors(@group) } + format.html {render :action => "edit"} + format.api {render_validation_errors(@group)} end end end @@ -103,8 +103,8 @@ class GroupsController < ApplicationController @group.destroy respond_to do |format| - format.html { redirect_to_referer_or(groups_path) } - format.api { render_api_ok } + format.html {redirect_to_referer_or(groups_path)} + format.api {render_api_ok} end end @@ -115,7 +115,7 @@ class GroupsController < ApplicationController @users = User.not_in_group(@group).where(:id => (params[:user_id] || params[:user_ids])).to_a @group.users << @users respond_to do |format| - format.html { redirect_to edit_group_path(@group, :tab => 'users') } + format.html {redirect_to edit_group_path(@group, :tab => 'users')} format.js format.api do if @users.any? @@ -130,9 +130,9 @@ class GroupsController < ApplicationController def remove_user @group.users.delete(User.find(params[:user_id])) if request.delete? respond_to do |format| - format.html { redirect_to edit_group_path(@group, :tab => 'users') } + format.html {redirect_to edit_group_path(@group, :tab => 'users')} format.js - format.api { render_api_ok } + format.api {render_api_ok} end end |