mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-28 19:29:38 +00:00
use "do end" instead of {} at EmailAddressesController
git-svn-id: http://svn.redmine.org/redmine/trunk@20315 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3b45012598
commit
fa781b670f
@ -37,19 +37,19 @@ class EmailAddressesController < ApplicationController
|
||||
end
|
||||
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
format.html do
|
||||
if saved
|
||||
redirect_to user_email_addresses_path(@user)
|
||||
else
|
||||
index
|
||||
render :action => 'index'
|
||||
end
|
||||
}
|
||||
format.js {
|
||||
end
|
||||
format.js do
|
||||
@address = nil if saved
|
||||
index
|
||||
render :action => 'index'
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -60,14 +60,14 @@ class EmailAddressesController < ApplicationController
|
||||
@address.save
|
||||
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
format.html do
|
||||
redirect_to user_email_addresses_path(@user)
|
||||
}
|
||||
format.js {
|
||||
end
|
||||
format.js do
|
||||
@address = nil
|
||||
index
|
||||
render :action => 'index'
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -75,14 +75,14 @@ class EmailAddressesController < ApplicationController
|
||||
@address.destroy
|
||||
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
format.html do
|
||||
redirect_to user_email_addresses_path(@user)
|
||||
}
|
||||
format.js {
|
||||
end
|
||||
format.js do
|
||||
@address = nil
|
||||
index
|
||||
render :action => 'index'
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user