aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Nartimov <just.lest@gmail.com>2012-04-06 22:18:21 +0300
committerSergey Nartimov <just.lest@gmail.com>2012-04-06 22:18:21 +0300
commit13688cf8a94c5248d7848f86c16abeac82d88e6e (patch)
tree98542c2d1af02b7348df00f58cf8ec8f71c17308
parent29089bf6faeb496f0cb7d439b848bc6ee4f40e9e (diff)
downloadrails-13688cf8a94c5248d7848f86c16abeac82d88e6e.tar.gz
rails-13688cf8a94c5248d7848f86c16abeac82d88e6e.tar.bz2
rails-13688cf8a94c5248d7848f86c16abeac82d88e6e.zip
pass default value as argument to fetch
-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