]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Save the user record after changing it
[rails.git] / app / controllers / user_controller.rb
index a591906976b93863760e8d80070a7fab79c9817c..d7b73c14e6aa0739dbf370b73bba7873f1523317 100644 (file)
@@ -473,7 +473,8 @@ class UserController < ApplicationController
   ##
   # sets a user's status
   def set_status
-    @this_user.update_attributes(:status => params[:status])
+    @this_user.status = params[:status]
+    @this_user.save
     redirect_to :controller => 'user', :action => 'view', :display_name => params[:display_name]
   end