pass default value as argument to fetch

This commit is contained in:
Sergey Nartimov 2012-04-06 22:18:21 +03:00
parent 29089bf6fa
commit 13688cf8a9
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ module ActionView
add_default_name_and_id(html_options) add_default_name_and_id(html_options)
select = content_tag("select", add_options(option_tags, options, value(object)), 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 tag("input", :disabled => html_options["disabled"], :name => html_options["name"], :type => "hidden", :value => "") + select
else else
select select