]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_preference_controller.rb
Merge 12304:14009 from trunk.
[rails.git] / app / controllers / user_preference_controller.rb
index 3b56c257be32b822864b08f984c959d8f549fc27..68ea88eeac5922def89f7e7e947f73c68332e072 100644 (file)
@@ -52,8 +52,7 @@ class UserPreferenceController < ApplicationController
 
   # update the entire set of preferences
   def update
-    p = XML::Parser.new
-    p.string = request.raw_post
+    p = XML::Parser.string(request.raw_post)
     doc = p.parse
 
     prefs = []