Use normal assignment instead of mass assignment
authorTom Hughes <tom@compton.nu>
Thu, 8 Mar 2012 22:41:25 +0000 (22:41 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 8 Mar 2012 22:41:25 +0000 (22:41 +0000)
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