diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2012-02-14 01:28:22 -0800 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2012-02-14 01:28:22 -0800 |
commit | 65ffcec5a64053576b2597d3e40fd1d0176c7129 (patch) | |
tree | 3e5ed23429f8c403ea005cefaf5c66e569e8d691 /actionpack/lib/action_view/helpers/tags/collection_radio_buttons.rb | |
parent | c5b90a6ab1430107131f0cb363e2697a4ecb2714 (diff) | |
parent | a10ed70999935cf86bd9a170ce3d4748631968ca (diff) | |
download | rails-65ffcec5a64053576b2597d3e40fd1d0176c7129.tar.gz rails-65ffcec5a64053576b2597d3e40fd1d0176c7129.tar.bz2 rails-65ffcec5a64053576b2597d3e40fd1d0176c7129.zip |
Merge pull request #5032 from carlosantoniodasilva/collection-helpers-object
Allow collection helpers with block to access current object in the collection
Diffstat (limited to 'actionpack/lib/action_view/helpers/tags/collection_radio_buttons.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/tags/collection_radio_buttons.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/tags/collection_radio_buttons.rb b/actionpack/lib/action_view/helpers/tags/collection_radio_buttons.rb index 8e7aeeed63..ba2035f074 100644 --- a/actionpack/lib/action_view/helpers/tags/collection_radio_buttons.rb +++ b/actionpack/lib/action_view/helpers/tags/collection_radio_buttons.rb @@ -14,8 +14,8 @@ module ActionView end def render - render_collection do |value, text, default_html_options| - builder = instantiate_builder(RadioButtonBuilder, value, text, default_html_options) + render_collection do |item, value, text, default_html_options| + builder = instantiate_builder(RadioButtonBuilder, item, value, text, default_html_options) if block_given? yield builder |