]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_preference_controller.rb
Fix spelling mistake.
[rails.git] / app / controllers / user_preference_controller.rb
index 5594799293a1c9f79d492c54f79e128225369c04..3a48ee65e85667222c1e2994f93efa18bd16363c 100644 (file)
@@ -53,8 +53,7 @@ class UserPreferenceController < ApplicationController
   # update the entire set of preferences
   def update
     begin
-      p = XML::Parser.new
-      p.string = request.raw_post
+      p = XML::Parser.string(request.raw_post)
       doc = p.parse
 
       prefs = []