diff options
author | Mauro George <maurogot@gmail.com> | 2014-04-12 15:14:35 -0300 |
---|---|---|
committer | Mauro George <maurogot@gmail.com> | 2014-04-12 15:14:35 -0300 |
commit | dfac1b188e98d59bda0fac1148c417a9761f7b54 (patch) | |
tree | 53c089dfd6b37a7a90654e5d4a74075a9860b790 /actionview/lib | |
parent | fd56a78c0e804ced70b67f8ebf90efdef98575af (diff) | |
download | rails-dfac1b188e98d59bda0fac1148c417a9761f7b54.tar.gz rails-dfac1b188e98d59bda0fac1148c417a9761f7b54.tar.bz2 rails-dfac1b188e98d59bda0fac1148c417a9761f7b54.zip |
CollectionHelpers now accepts a readonly option
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/helpers/tags/collection_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/tags/collection_helpers.rb b/actionview/lib/action_view/helpers/tags/collection_helpers.rb index 991f32cea2..8050638363 100644 --- a/actionview/lib/action_view/helpers/tags/collection_helpers.rb +++ b/actionview/lib/action_view/helpers/tags/collection_helpers.rb @@ -44,7 +44,7 @@ module ActionView def default_html_options_for_collection(item, value) #:nodoc: html_options = @html_options.dup - [:checked, :selected, :disabled].each do |option| + [:checked, :selected, :disabled, :readonly].each do |option| current_value = @options[option] next if current_value.nil? |