aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-04-07 08:04:44 -0700
committerVijay Dev <vijaydev.cse@gmail.com>2012-04-07 08:04:44 -0700
commit91b0ffc4fadb69590cc7197fc6497d146f469ce7 (patch)
tree98542c2d1af02b7348df00f58cf8ec8f71c17308 /actionpack/lib/action_view/helpers
parent29089bf6faeb496f0cb7d439b848bc6ee4f40e9e (diff)
parent13688cf8a94c5248d7848f86c16abeac82d88e6e (diff)
downloadrails-91b0ffc4fadb69590cc7197fc6497d146f469ce7.tar.gz
rails-91b0ffc4fadb69590cc7197fc6497d146f469ce7.tar.bz2
rails-91b0ffc4fadb69590cc7197fc6497d146f469ce7.zip
Merge pull request #5766 from lest/patch-4
pass default value as argument to fetch
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r--actionpack/lib/action_view/helpers/tags/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/tags/base.rb b/actionpack/lib/action_view/helpers/tags/base.rb
index 7c2f12d8e7..e4f431a6d7 100644
--- a/actionpack/lib/action_view/helpers/tags/base.rb
+++ b/actionpack/lib/action_view/helpers/tags/base.rb
@@ -123,7 +123,7 @@ module ActionView
add_default_name_and_id(html_options)
select = content_tag("select", add_options(option_tags, options, value(object)), html_options)
- if html_options["multiple"] && options.fetch(:include_hidden) { true }
+ if html_options["multiple"] && options.fetch(:include_hidden, true)
tag("input", :disabled => html_options["disabled"], :name => html_options["name"], :type => "hidden", :value => "") + select
else
select