mirror of
https://github.com/meineerde/redmine.git
synced 2026-04-02 14:01:38 +00:00
remove spaces inside {} of MyController
git-svn-id: http://svn.redmine.org/redmine/trunk@20076 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b8575166d8
commit
f76bd5f9c3
@ -62,13 +62,13 @@ class MyController < ApplicationController
|
|||||||
flash[:notice] = l(:notice_account_updated)
|
flash[:notice] = l(:notice_account_updated)
|
||||||
redirect_to my_account_path
|
redirect_to my_account_path
|
||||||
}
|
}
|
||||||
format.api { render_api_ok }
|
format.api {render_api_ok}
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { render :action => :account }
|
format.html {render :action => :account}
|
||||||
format.api { render_validation_errors(@user) }
|
format.api {render_validation_errors(@user)}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -169,7 +169,7 @@ class MyController < ApplicationController
|
|||||||
if @user.pref.add_block @block
|
if @user.pref.add_block @block
|
||||||
@user.pref.save
|
@user.pref.save
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { redirect_to my_page_path }
|
format.html {redirect_to my_page_path}
|
||||||
format.js
|
format.js
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@ -185,7 +185,7 @@ class MyController < ApplicationController
|
|||||||
@user.pref.remove_block @block
|
@user.pref.remove_block @block
|
||||||
@user.pref.save
|
@user.pref.save
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { redirect_to my_page_path }
|
format.html {redirect_to my_page_path}
|
||||||
format.js
|
format.js
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user