Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix failing test.

  • Loading branch information...
commit 2750f2ee00771109b2b254c8d03c5669d9f5bd59 1 parent 372d724
@josevalim josevalim authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/xml_mini.rb
View
2  activesupport/lib/active_support/xml_mini.rb
@@ -141,7 +141,7 @@ def rename_key(key, options = {})
def _dasherize(key)
# $2 must be a non-greedy regex for this to work
left, middle, right = /\A(_*)(.*?)(_*)\Z/.match(key.strip)[1,3]
- "#{left}#{middle.tr('_', '-')}#{right}"
+ "#{left}#{middle.tr('_ ', '--')}#{right}"
end
# TODO: Add support for other encodings
Please sign in to comment.
Something went wrong with that request. Please try again.