diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-02-01 19:46:48 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-02-02 14:52:33 -0200 |
commit | 0f234261552dae68b66d3d0271ef39c343082c36 (patch) | |
tree | 2931d9b467e0fd403ff64df26da14a2bc2f4d6a4 /actionpack/lib/action_view/helpers/tags/collection_helpers.rb | |
parent | f506c8063b3084f54aa8bd157d94f10b7aed2bf0 (diff) | |
download | rails-0f234261552dae68b66d3d0271ef39c343082c36.tar.gz rails-0f234261552dae68b66d3d0271ef39c343082c36.tar.bz2 rails-0f234261552dae68b66d3d0271ef39c343082c36.zip |
Allow collection radio_buttons/check_boxes to access current text/value
[Carlos Antonio da Silva + Rafael Mendonça França]
Diffstat (limited to 'actionpack/lib/action_view/helpers/tags/collection_helpers.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/tags/collection_helpers.rb | 2 |
1 files changed, 2 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 c5fa7e1458..1e2e77dde1 100644 --- a/actionpack/lib/action_view/helpers/tags/collection_helpers.rb +++ b/actionpack/lib/action_view/helpers/tags/collection_helpers.rb @@ -3,6 +3,8 @@ module ActionView module Tags module CollectionHelpers class Builder + attr_reader :text, :value + def initialize(template_object, object_name, method_name, sanitized_attribute_name, text, value, input_html_options) @template_object = template_object |