Skip to content

Commit

Permalink
Fix variable error in Nokogiri XmlMini code [#3242 state:resolved]
Browse files Browse the repository at this point in the history
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information
Michael Gunderloy authored and lifo committed Sep 21, 2009
1 parent e187528 commit 6222ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/xml_mini/nokogiri.rb
Expand Up @@ -12,7 +12,7 @@ def parse(string)
if string.blank? if string.blank?
{} {}
else else
doc = Nokogiri::XML(data) { |cfg| cfg.noblanks } doc = Nokogiri::XML(string) { |cfg| cfg.noblanks }
raise doc.errors.first if doc.errors.length > 0 raise doc.errors.first if doc.errors.length > 0
doc.to_hash doc.to_hash
end end
Expand Down

0 comments on commit 6222ac1

Please sign in to comment.