mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
use "do end" instead of {} at TrackersController
git-svn-id: http://svn.redmine.org/redmine/trunk@20304 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
968c95ea49
commit
f234e28154
@ -66,18 +66,18 @@ class TrackersController < ApplicationController
|
|||||||
@tracker.safe_attributes = params[:tracker]
|
@tracker.safe_attributes = params[:tracker]
|
||||||
if @tracker.save
|
if @tracker.save
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html {
|
format.html do
|
||||||
flash[:notice] = l(:notice_successful_update)
|
flash[:notice] = l(:notice_successful_update)
|
||||||
redirect_to trackers_path(:page => params[:page])
|
redirect_to trackers_path(:page => params[:page])
|
||||||
}
|
end
|
||||||
format.js { head 200 }
|
format.js { head 200 }
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html {
|
format.html do
|
||||||
edit
|
edit
|
||||||
render :action => 'edit'
|
render :action => 'edit'
|
||||||
}
|
end
|
||||||
format.js { head 422 }
|
format.js { head 422 }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user