Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed abstract note hash_to_xml_attributes to work in ruby 1.8, rev…

…erses part of commit 77b556d
  • Loading branch information...
commit 1a0065268792ac8070a0ac0337ab6590d217577b 1 parent e27bdb3
@ivanoats ivanoats authored josevalim committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/rails-footnotes/notes/abstract_note.rb
View
6 lib/rails-footnotes/notes/abstract_note.rb
@@ -167,7 +167,11 @@ def mount_table_for_hash(hash)
end
def hash_to_xml_attributes(hash)
- return hash.collect{ |key, value| "#{key.to_s}=\"#{value.gsub('"','\"')}\"" }.join(' ')
+ newstring = ""
+ hash.each do |key, value|
+ newstring << "#{key.to_s}=\"#{value.gsub('"','\"')}\" "
+ end
+ return newstring
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.