diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2014-04-13 10:44:53 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2014-04-13 10:44:53 -0300 |
commit | b502fcc3c47dd9b06131bcf64356deffaa1d7154 (patch) | |
tree | 56368c08e2b614c1621f7752e03b000f4e6e463c /actionview/lib/action_view | |
parent | 8b3ff37cb77e1f3976e6108b67414d0666f36574 (diff) | |
parent | dfac1b188e98d59bda0fac1148c417a9761f7b54 (diff) | |
download | rails-b502fcc3c47dd9b06131bcf64356deffaa1d7154.tar.gz rails-b502fcc3c47dd9b06131bcf64356deffaa1d7154.tar.bz2 rails-b502fcc3c47dd9b06131bcf64356deffaa1d7154.zip |
Merge pull request #14722 from maurogeorge/mg-readonly-collection
CollectionHelpers now accepts a readonly option
Diffstat (limited to 'actionview/lib/action_view')
-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? |