summaryrefslogtreecommitdiff
path: root/users/app/controllers
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-10 10:38:48 +0100
committerAzul <azul@leap.se>2012-12-10 10:38:48 +0100
commite4c7f2fb8fa2833037508f1b88f802944855fd77 (patch)
tree0514506d3b64861b8a5877145e1a3212c76af4b9 /users/app/controllers
parent9d99d340cfd3c55f21d38c1ba9f3f4574e40c46c (diff)
actually allow adding email aliases
Diffstat (limited to 'users/app/controllers')
-rw-r--r--users/app/controllers/users_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/users/app/controllers/users_controller.rb b/users/app/controllers/users_controller.rb
index 4921a4a..5055f4e 100644
--- a/users/app/controllers/users_controller.rb
+++ b/users/app/controllers/users_controller.rb
@@ -30,7 +30,8 @@ class UsersController < ApplicationController
end
def update
- if @user.update_attributes(params[:user])
+ @user.attributes = params[:user]
+ if @user.changed? and @user.save
flash[:notice] = t(:user_updated_successfully)
end
respond_with @user, :location => edit_user_path(@user)