aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/tags/date_select.rb
diff options
context:
space:
mode:
authorColin Burn-Murdoch <colin@burn-murdoch.com>2013-01-13 20:35:15 +0000
committerColin Burn-Murdoch <colin@burn-murdoch.com>2013-01-13 21:03:21 +0000
commitaea3820261c5bba9afcc775bf78d997e43db42f0 (patch)
tree993f703aad6f96a595af08c088213caf4fca571a /actionpack/lib/action_view/helpers/tags/date_select.rb
parent4e7c8f8bb830306f328025d8dad23ba081176668 (diff)
downloadrails-aea3820261c5bba9afcc775bf78d997e43db42f0.tar.gz
rails-aea3820261c5bba9afcc775bf78d997e43db42f0.tar.bz2
rails-aea3820261c5bba9afcc775bf78d997e43db42f0.zip
Allow value to be set on date_select
Diffstat (limited to 'actionpack/lib/action_view/helpers/tags/date_select.rb')
-rw-r--r--actionpack/lib/action_view/helpers/tags/date_select.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/tags/date_select.rb b/actionpack/lib/action_view/helpers/tags/date_select.rb
index 6c400f85cb..f073c63f73 100644
--- a/actionpack/lib/action_view/helpers/tags/date_select.rb
+++ b/actionpack/lib/action_view/helpers/tags/date_select.rb
@@ -27,7 +27,7 @@ module ActionView
end
def datetime_selector(options, html_options)
- datetime = value(object) || default_datetime(options)
+ datetime = options[:value] || value(object) || default_datetime(options)
@auto_index ||= nil
options = options.dup