aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/array/conversions.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2008-10-31 18:41:25 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2008-10-31 18:41:25 +0100
commite466ae13e9b6d901e3e39bb9ceeafd83e266ce81 (patch)
treeab00d914fdd82fbae6d6213012bce853ec707242 /activesupport/lib/active_support/core_ext/array/conversions.rb
parent7857e42103ca1ab9e8d7f363527ddb2af3e8bd65 (diff)
downloadrails-e466ae13e9b6d901e3e39bb9ceeafd83e266ce81.tar.gz
rails-e466ae13e9b6d901e3e39bb9ceeafd83e266ce81.tar.bz2
rails-e466ae13e9b6d901e3e39bb9ceeafd83e266ce81.zip
Fixed the option merging in Array#to_xml [#1126 state:resolved]
Diffstat (limited to 'activesupport/lib/active_support/core_ext/array/conversions.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/array/conversions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/array/conversions.rb b/activesupport/lib/active_support/core_ext/array/conversions.rb
index 11c128da22..cf3e03f62c 100644
--- a/activesupport/lib/active_support/core_ext/array/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/array/conversions.rb
@@ -172,7 +172,7 @@ module ActiveSupport #:nodoc:
else
xml.tag!(root, options[:skip_types] ? {} : {:type => "array"}) {
yield xml if block_given?
- each { |e| e.to_xml(opts.merge!({ :skip_instruct => true })) }
+ each { |e| e.to_xml(opts.merge({ :skip_instruct => true })) }
}
end
end