aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-12-10 11:09:31 +0100
committerYves Senn <yves.senn@gmail.com>2013-12-10 11:09:31 +0100
commit900191fe2c7eea88c625deb824e995bc7b5e914d (patch)
tree6af409c0271cf5ef9cadc3a5de16abff01a9da8f /activesupport
parent7cf9a43268e2a6bf8d6467e1c46ccb4255559aec (diff)
downloadrails-900191fe2c7eea88c625deb824e995bc7b5e914d.tar.gz
rails-900191fe2c7eea88c625deb824e995bc7b5e914d.tar.bz2
rails-900191fe2c7eea88c625deb824e995bc7b5e914d.zip
doc: date/conversions.rb should talk about date format not time format.
Closes #13245. [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/date/conversions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/date/conversions.rb b/activesupport/lib/active_support/core_ext/date/conversions.rb
index 6bc8f12176..09504a4d9c 100644
--- a/activesupport/lib/active_support/core_ext/date/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/date/conversions.rb
@@ -37,12 +37,12 @@ class Date
# date.to_formatted_s(:rfc822) # => "10 Nov 2007"
# date.to_formatted_s(:iso8601) # => "2007-11-10"
#
- # == Adding your own time formats to to_formatted_s
+ # == Adding your own date formats to to_formatted_s
# You can add your own formats to the Date::DATE_FORMATS hash.
# Use the format name as the hash key and either a strftime string
# or Proc instance that takes a date argument as the value.
#
- # # config/initializers/time_formats.rb
+ # # config/initializers/date_formats.rb
# Date::DATE_FORMATS[:month_and_year] = '%B %Y'
# Date::DATE_FORMATS[:short_ordinal] = ->(date) { date.strftime("%B #{date.day.ordinalize}") }
def to_formatted_s(format = :default)