diff options
author | Azul <azul@leap.se> | 2012-12-10 10:38:48 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-12-10 10:38:48 +0100 |
commit | e4c7f2fb8fa2833037508f1b88f802944855fd77 (patch) | |
tree | 0514506d3b64861b8a5877145e1a3212c76af4b9 /users/app/controllers | |
parent | 9d99d340cfd3c55f21d38c1ba9f3f4574e40c46c (diff) |
actually allow adding email aliases
Diffstat (limited to 'users/app/controllers')
-rw-r--r-- | users/app/controllers/users_controller.rb | 3 |
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) |