From dfac1b188e98d59bda0fac1148c417a9761f7b54 Mon Sep 17 00:00:00 2001 From: Mauro George Date: Sat, 12 Apr 2014 15:14:35 -0300 Subject: CollectionHelpers now accepts a readonly option --- actionview/lib/action_view/helpers/tags/collection_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionview/lib/action_view') 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? -- cgit v1.2.3