aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/xml_mini.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-05-09 17:08:59 +0200
committerJosé Valim <jose.valim@gmail.com>2011-05-09 17:08:59 +0200
commit2750f2ee00771109b2b254c8d03c5669d9f5bd59 (patch)
treefb9fd621dc4e2d08b5e7d2f1ef277c17b8d4d383 /activesupport/lib/active_support/xml_mini.rb
parent372d72445ba7cb2d79b2b087a51214f3c3d3d835 (diff)
downloadrails-2750f2ee00771109b2b254c8d03c5669d9f5bd59.tar.gz
rails-2750f2ee00771109b2b254c8d03c5669d9f5bd59.tar.bz2
rails-2750f2ee00771109b2b254c8d03c5669d9f5bd59.zip
Fix failing test.
Diffstat (limited to 'activesupport/lib/active_support/xml_mini.rb')
-rw-r--r--activesupport/lib/active_support/xml_mini.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/xml_mini.rb b/activesupport/lib/active_support/xml_mini.rb
index 5cadcf634b..6e12404ad4 100644
--- a/activesupport/lib/active_support/xml_mini.rb
+++ b/activesupport/lib/active_support/xml_mini.rb
@@ -141,7 +141,7 @@ module ActiveSupport
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