aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-05-24 14:35:17 +0930
committerGitHub <noreply@github.com>2017-05-24 14:35:17 +0930
commite5a9d289b16592f395fb528c9688604c02bd2e33 (patch)
treeca72172b569ef13c8b261ad4c224ed9c6803aab1 /actionview/lib/action_view/helpers
parent3a4c488a9d1872dc456e93eb7b0d834e05d9ecff (diff)
parentefe62b71d52c40849ead8855fb4f42fae91d4c54 (diff)
downloadrails-e5a9d289b16592f395fb528c9688604c02bd2e33.tar.gz
rails-e5a9d289b16592f395fb528c9688604c02bd2e33.tar.bz2
rails-e5a9d289b16592f395fb528c9688604c02bd2e33.zip
Merge pull request #29119 from spohlenz/fix-select-with-enumerable
Fix select tag helper used with Enumerable choices
Diffstat (limited to 'actionview/lib/action_view/helpers')
-rw-r--r--actionview/lib/action_view/helpers/tags/select.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/tags/select.rb b/actionview/lib/action_view/helpers/tags/select.rb
index 667c7e945a..9ff7e54e4f 100644
--- a/actionview/lib/action_view/helpers/tags/select.rb
+++ b/actionview/lib/action_view/helpers/tags/select.rb
@@ -33,7 +33,7 @@ module ActionView
# [nil, []]
# { nil => [] }
def grouped_choices?
- !@choices.empty? && @choices.first.respond_to?(:last) && Array === @choices.first.last
+ !@choices.blank? && @choices.first.respond_to?(:last) && Array === @choices.first.last
end
end
end