Fix for libxml 1.0.0 changes.
authorTom Hughes <tom@compton.nu>
Sun, 8 Mar 2009 12:44:45 +0000 (12:44 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 8 Mar 2009 12:44:45 +0000 (12:44 +0000)
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 = []