Browse files

fixed typo mistake time_formats.rb -> date_formats.rb [ci skip]

  • Loading branch information...
1 parent fe077b5 commit afeb7409c0619aee6005ec5feb4accdb595f4795 @kuldeepaggarwal kuldeepaggarwal committed Dec 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/date/conversions.rb
View
2 activesupport/lib/active_support/core_ext/date/conversions.rb
@@ -42,7 +42,7 @@ class Date
# 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)

0 comments on commit afeb740

Please sign in to comment.