diff options
author | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2013-11-15 00:53:57 +0530 |
---|---|---|
committer | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2013-11-15 00:53:57 +0530 |
commit | d3a1ce1cdc60d593de1682c5f4e3230c8db9a0fd (patch) | |
tree | 65004268d5092ecc56983a455603729d7476f148 /actionview/lib/action_view/helpers | |
parent | 140c0c8881d100b0d0bc2a0bce1227ddfbd9c9bd (diff) | |
download | rails-d3a1ce1cdc60d593de1682c5f4e3230c8db9a0fd.tar.gz rails-d3a1ce1cdc60d593de1682c5f4e3230c8db9a0fd.tar.bz2 rails-d3a1ce1cdc60d593de1682c5f4e3230c8db9a0fd.zip |
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 42b1dd8933..c027c8c66e 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 |