Skip to content
Browse files

make documentation agree with test expectations and

behaviour

See: test_select_date_with_incomplete_order in 
actionpack/test/template/date_helper_test.rb
  • Loading branch information...
1 parent 4341a5a commit 2e6475ec06485f4f7e330638dfc86cff4dfe2b31 @raybaxter raybaxter committed Jul 17, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/helpers/date_helper.rb
View
4 actionpack/lib/action_view/helpers/date_helper.rb
@@ -343,8 +343,8 @@ def select_datetime(datetime = Time.current, options = {}, html_options = {})
# Returns a set of html select-tags (one for year, month, and day) pre-selected with the +date+.
# It's possible to explicitly set the order of the tags using the <tt>:order</tt> option with an array of
- # symbols <tt>:year</tt>, <tt>:month</tt> and <tt>:day</tt> in the desired order. If you do not supply a Symbol,
- # it will be appended onto the <tt>:order</tt> passed in.
+ # symbols <tt>:year</tt>, <tt>:month</tt> and <tt>:day</tt> in the desired order. If you do not supply a symbol
+ # then all tags will be hidden.
#
# If anything is passed in the html_options hash it will be applied to every select tag in the set.
#

0 comments on commit 2e6475e

Please sign in to comment.
Something went wrong with that request. Please try again.