Permalink
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 e6caf3c commit a7d4008674db47a576182a67c372b699f4bf4853 @raybaxter raybaxter committed with fxn Jul 17, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 a7d4008

Please sign in to comment.