]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Use normal assignment instead of mass assignment
[rails.git] / app / controllers / user_controller.rb
index a591906976b93863760e8d80070a7fab79c9817c..b56b58433c9a8ba870a6ed800a9758a596457c08 100644 (file)
@@ -473,7 +473,7 @@ class UserController < ApplicationController
   ##
   # sets a user's status
   def set_status
-    @this_user.update_attributes(:status => params[:status])
+    @this_user.status => params[:status]
     redirect_to :controller => 'user', :action => 'view', :display_name => params[:display_name]
   end