aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/tags/collection_helpers.rb
diff options
context:
space:
mode:
authorVasiliy Ermolovich <younash@gmail.com>2012-05-05 20:34:06 +0300
committerVasiliy Ermolovich <younash@gmail.com>2012-05-05 20:34:06 +0300
commite0aadf12e3e6f3e98609bcc51e2428cf3843cfd3 (patch)
treea57d1813d586e603fc1068d91ab3f86fe4e39f93 /actionpack/lib/action_view/helpers/tags/collection_helpers.rb
parentacb39848ae4cfe1d22cd8a83c5db636d80c22b47 (diff)
downloadrails-e0aadf12e3e6f3e98609bcc51e2428cf3843cfd3.tar.gz
rails-e0aadf12e3e6f3e98609bcc51e2428cf3843cfd3.tar.bz2
rails-e0aadf12e3e6f3e98609bcc51e2428cf3843cfd3.zip
check checkboxes with array of strings as :checked option
Diffstat (limited to 'actionpack/lib/action_view/helpers/tags/collection_helpers.rb')
-rw-r--r--actionpack/lib/action_view/helpers/tags/collection_helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/tags/collection_helpers.rb b/actionpack/lib/action_view/helpers/tags/collection_helpers.rb
index 6a1479069f..4e33e79a36 100644
--- a/actionpack/lib/action_view/helpers/tags/collection_helpers.rb
+++ b/actionpack/lib/action_view/helpers/tags/collection_helpers.rb
@@ -49,7 +49,7 @@ module ActionView
accept = if current_value.respond_to?(:call)
current_value.call(item)
else
- Array(current_value).include?(value)
+ Array(current_value).map(&:to_s).include?(value.to_s)
end
if accept