aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/date_helper.rb
diff options
context:
space:
mode:
authorSam Oliver <sam@samoliver.com>2009-01-02 15:34:38 +0000
committerMichael Koziarski <michael@koziarski.com>2009-02-13 22:04:27 +1300
commitf04346d8b999476113d5e5a30661e07899e3ff80 (patch)
tree7c55aa19175b09ab11e9f4f5d89a16a1636d1731 /actionpack/lib/action_view/helpers/date_helper.rb
parent5dbc9d40a49f5f0f50c2f3ebe6dda942f0e61562 (diff)
downloadrails-f04346d8b999476113d5e5a30661e07899e3ff80.tar.gz
rails-f04346d8b999476113d5e5a30661e07899e3ff80.tar.bz2
rails-f04346d8b999476113d5e5a30661e07899e3ff80.zip
Stops date select helpers from defaulting the selected date to today if :prompt option has been used
Signed-off-by: Michael Koziarski <michael@koziarski.com> [#561 state:resolved]
Diffstat (limited to 'actionpack/lib/action_view/helpers/date_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/date_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb
index b4c1adbe76..b7ef1fb90d 100644
--- a/actionpack/lib/action_view/helpers/date_helper.rb
+++ b/actionpack/lib/action_view/helpers/date_helper.rb
@@ -931,7 +931,7 @@ module ActionView
end
def default_datetime(options)
- return if options[:include_blank]
+ return if options[:include_blank] || options[:prompt]
case options[:default]
when nil