Skip to content
This repository
Browse code

Fix variable error in Nokogiri XmlMini code [#3242 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
commit 6222ac1a91e5beb44d875ec9c0072bbac6f3d04d 1 parent e187528
authored September 21, 2009 lifo committed September 22, 2009
2  activesupport/lib/active_support/xml_mini/nokogiri.rb
@@ -12,7 +12,7 @@ def parse(string)
12 12
       if string.blank?
13 13
         {}
14 14
       else
15  
-        doc = Nokogiri::XML(data) { |cfg| cfg.noblanks }
  15
+        doc = Nokogiri::XML(string) { |cfg| cfg.noblanks }
16 16
         raise doc.errors.first if doc.errors.length > 0
17 17
         doc.to_hash
18 18
       end

0 notes on commit 6222ac1

Please sign in to comment.
Something went wrong with that request. Please try again.