aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view
diff options
context:
space:
mode:
authorMauro George <maurogot@gmail.com>2014-04-12 15:14:35 -0300
committerMauro George <maurogot@gmail.com>2014-04-12 15:14:35 -0300
commitdfac1b188e98d59bda0fac1148c417a9761f7b54 (patch)
tree53c089dfd6b37a7a90654e5d4a74075a9860b790 /actionview/lib/action_view
parentfd56a78c0e804ced70b67f8ebf90efdef98575af (diff)
downloadrails-dfac1b188e98d59bda0fac1148c417a9761f7b54.tar.gz
rails-dfac1b188e98d59bda0fac1148c417a9761f7b54.tar.bz2
rails-dfac1b188e98d59bda0fac1148c417a9761f7b54.zip
CollectionHelpers now accepts a readonly option
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r--actionview/lib/action_view/helpers/tags/collection_helpers.rb2
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?