diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-14 11:29:28 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-14 11:29:28 -0800 |
commit | 84961dc5df86c70504bdcdc218799e9f848a7a00 (patch) | |
tree | 14b7072cf0eb29cfb57cdadb2f70d51f454db7de /actionview/lib/action_view/helpers | |
parent | a23bf6f55a2bea50ec39cc744e17c924d727c089 (diff) | |
parent | d3a1ce1cdc60d593de1682c5f4e3230c8db9a0fd (diff) | |
download | rails-84961dc5df86c70504bdcdc218799e9f848a7a00.tar.gz rails-84961dc5df86c70504bdcdc218799e9f848a7a00.tar.bz2 rails-84961dc5df86c70504bdcdc218799e9f848a7a00.zip |
Merge pull request #12889 from kuldeepaggarwal/speed_ups
Used Yield instead of block.call
Diffstat (limited to 'actionview/lib/action_view/helpers')
-rw-r--r-- | actionview/lib/action_view/helpers/atom_feed_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/atom_feed_helper.rb b/actionview/lib/action_view/helpers/atom_feed_helper.rb index af70a4242a..1df52cd4b5 100644 --- a/actionview/lib/action_view/helpers/atom_feed_helper.rb +++ b/actionview/lib/action_view/helpers/atom_feed_helper.rb @@ -135,11 +135,11 @@ module ActionView # Delegate to xml builder, first wrapping the element in a xhtml # namespaced div element if the method and arguments indicate # that an xhtml_block? is desired. - def method_missing(method, *arguments, &block) + def method_missing(method, *arguments) if xhtml_block?(method, arguments) @xml.__send__(method, *arguments) do @xml.div(:xmlns => 'http://www.w3.org/1999/xhtml') do |xhtml| - block.call(xhtml) + yield(xhtml) end end else |