summaryrefslogtreecommitdiff
path: root/users/app/controllers
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-07 17:26:42 +0100
committerAzul <azul@leap.se>2012-12-07 17:26:42 +0100
commit8282b83c798ba4e5c1e26ec8243b82669b3ee6d4 (patch)
tree4df73c0a0f37ee9f16cd3f15fc2d23f458ca09ba /users/app/controllers
parentbc2ead40468f0d9372372f73260d83d30e93bc9a (diff)
parentbfe61e5132b379461425ce868e980e3a1ea0260a (diff)
Merge branch 'feature/email-forwards-for-users'
Diffstat (limited to 'users/app/controllers')
-rw-r--r--users/app/controllers/users_controller.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/users/app/controllers/users_controller.rb b/users/app/controllers/users_controller.rb
index cffc8c6..4921a4a 100644
--- a/users/app/controllers/users_controller.rb
+++ b/users/app/controllers/users_controller.rb
@@ -30,8 +30,10 @@ class UsersController < ApplicationController
end
def update
- @user.update_attributes(params[:user])
- respond_with @user
+ if @user.update_attributes(params[:user])
+ flash[:notice] = t(:user_updated_successfully)
+ end
+ respond_with @user, :location => edit_user_path(@user)
end
def destroy