diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-01-02 11:52:13 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-01-02 11:52:13 -0800 |
commit | 96288e83c1c7666f33f21c4fe48fd0cb9ad4ec8a (patch) | |
tree | d57faa429d482b6825fc4961b1b70b5cc8f70dfd | |
parent | d74043885a8e7436091cca13e694fc255cb375b6 (diff) | |
parent | ed62584391973c1fa3e7d53d71c1b9f16a8f0289 (diff) | |
download | rails-96288e83c1c7666f33f21c4fe48fd0cb9ad4ec8a.tar.gz rails-96288e83c1c7666f33f21c4fe48fd0cb9ad4ec8a.tar.bz2 rails-96288e83c1c7666f33f21c4fe48fd0cb9ad4ec8a.zip |
Merge pull request #13573 from kuldeepaggarwal/doc-fix-default-values
provide correct information [ci skip]
-rw-r--r-- | actionview/lib/action_view/helpers/date_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/date_helper.rb b/actionview/lib/action_view/helpers/date_helper.rb index 523f8aed7a..7fe6accfbf 100644 --- a/actionview/lib/action_view/helpers/date_helper.rb +++ b/actionview/lib/action_view/helpers/date_helper.rb @@ -170,8 +170,8 @@ module ActionView # * <tt>:use_month_names</tt> - Set to an array with 12 month names if you want to customize month names. # Note: You can also use Rails' i18n functionality for this. # * <tt>:date_separator</tt> - Specifies a string to separate the date fields. Default is "" (i.e. nothing). - # * <tt>:start_year</tt> - Set the start year for the year select. Default is <tt>Time.now.year - 5</tt>. - # * <tt>:end_year</tt> - Set the end year for the year select. Default is <tt>Time.now.year + 5</tt>. + # * <tt>:start_year</tt> - Set the start year for the year select. Default is <tt>Date.today.year - 5</tt>. + # * <tt>:end_year</tt> - Set the end year for the year select. Default is <tt>Date.today.year + 5</tt>. # * <tt>:discard_day</tt> - Set to true if you don't want to show a day select. This includes the day # as a hidden field instead of showing a select field. Also note that this implicitly sets the day to be the # first of the given month in order to not create invalid dates like 31 February. |