aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-02-26 19:02:46 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-02-26 19:35:51 -0300
commit2ff884c74888e9133120782b9be14e3ef97f3958 (patch)
treee3fb546cb04bd4659d8f82f19ba82817afca7f5e /actionpack/lib
parent80680e9f1ed23b6ec89f9a42a47dc752807e7d48 (diff)
downloadrails-2ff884c74888e9133120782b9be14e3ef97f3958.tar.gz
rails-2ff884c74888e9133120782b9be14e3ef97f3958.tar.bz2
rails-2ff884c74888e9133120782b9be14e3ef97f3958.zip
Fix collection_check_boxes and collection_radio_buttons when using local
variables in the form builder
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/tags/collection_helpers.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/tags/collection_helpers.rb b/actionpack/lib/action_view/helpers/tags/collection_helpers.rb
index 6f950e552a..6a1479069f 100644
--- a/actionpack/lib/action_view/helpers/tags/collection_helpers.rb
+++ b/actionpack/lib/action_view/helpers/tags/collection_helpers.rb
@@ -59,6 +59,7 @@ module ActionView
end
end
+ html_options[:object] = @object
html_options
end