diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-08 13:02:42 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-08 13:02:42 +0000 |
commit | f234e2815473d757410af837bae42a8641bf36d5 (patch) | |
tree | c7a56cf9246c30f4e09387a7bb5adb6fb07716e6 /app/controllers/trackers_controller.rb | |
parent | 968c95ea4938f80d84055b2a3aeb829c79d56cb7 (diff) | |
download | redmine-f234e2815473d757410af837bae42a8641bf36d5.tar.gz redmine-f234e2815473d757410af837bae42a8641bf36d5.zip |
use "do end" instead of {} at TrackersController
git-svn-id: http://svn.redmine.org/redmine/trunk@20304 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/trackers_controller.rb')
-rw-r--r-- | app/controllers/trackers_controller.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/trackers_controller.rb b/app/controllers/trackers_controller.rb index af839e588..0d8bed419 100644 --- a/app/controllers/trackers_controller.rb +++ b/app/controllers/trackers_controller.rb @@ -66,18 +66,18 @@ class TrackersController < ApplicationController @tracker.safe_attributes = params[:tracker] if @tracker.save respond_to do |format| - format.html { + format.html do flash[:notice] = l(:notice_successful_update) redirect_to trackers_path(:page => params[:page]) - } + end format.js { head 200 } end else respond_to do |format| - format.html { + format.html do edit render :action => 'edit' - } + end format.js { head 422 } end end |