Permalink
Browse files

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]
  • Loading branch information...
samoli authored and NZKoz committed Jan 2, 2009
1 parent 5dbc9d4 commit f04346d8b999476113d5e5a30661e07899e3ff80
Showing with 15 additions and 15 deletions.
  1. +1 −1 actionpack/lib/action_view/helpers/date_helper.rb
  2. +14 −14 actionpack/test/template/date_helper_test.rb
@@ -931,7 +931,7 @@ def datetime_selector(options, html_options)
end
def default_datetime(options)
- return if options[:include_blank]
+ return if options[:include_blank] || options[:prompt]
case options[:default]
when nil
Oops, something went wrong.

0 comments on commit f04346d

Please sign in to comment.