aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-04-19 22:32:39 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-04-19 22:32:39 +0000
commitc87d242bf7b0f75800926c3a8cf23bb43667c9dd (patch)
treef80d29463400c06fe1410d9bfcae47b76ffee9ea /activesupport/lib/active_support/core_ext
parentc97f329b2a76439cd4fe71debdd64c71e9890b48 (diff)
downloadrails-c87d242bf7b0f75800926c3a8cf23bb43667c9dd.tar.gz
rails-c87d242bf7b0f75800926c3a8cf23bb43667c9dd.tar.bz2
rails-c87d242bf7b0f75800926c3a8cf23bb43667c9dd.zip
Added yielding of builder in Hash#to_xml [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6540 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r--activesupport/lib/active_support/core_ext/hash/conversions.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/conversions.rb b/activesupport/lib/active_support/core_ext/hash/conversions.rb
index 07d50df6ba..4e076dce6e 100644
--- a/activesupport/lib/active_support/core_ext/hash/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/hash/conversions.rb
@@ -99,6 +99,8 @@ module ActiveSupport #:nodoc:
end
end
end
+
+ yield options[:builder] if block_given?
end
end