diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-09-12 18:40:18 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-09-12 18:40:18 -0500 |
commit | 794a70f94485fb64ed1c49ba8532895306e2001c (patch) | |
tree | 44f096bdc08c2df55ce2278a87ea120ed2bee478 /activesupport/lib/active_support/core_ext/date/conversions.rb | |
parent | f4e180578c673194f58d4ff5a4a656cc51b2249e (diff) | |
download | rails-794a70f94485fb64ed1c49ba8532895306e2001c.tar.gz rails-794a70f94485fb64ed1c49ba8532895306e2001c.tar.bz2 rails-794a70f94485fb64ed1c49ba8532895306e2001c.zip |
update AS/core_ext docs [ci skip]
Diffstat (limited to 'activesupport/lib/active_support/core_ext/date/conversions.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/date/conversions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/date/conversions.rb b/activesupport/lib/active_support/core_ext/date/conversions.rb index 81f969e786..9120b0ba49 100644 --- a/activesupport/lib/active_support/core_ext/date/conversions.rb +++ b/activesupport/lib/active_support/core_ext/date/conversions.rb @@ -43,7 +43,7 @@ class Date # # # config/initializers/time_formats.rb # Date::DATE_FORMATS[:month_and_year] = '%B %Y' - # Date::DATE_FORMATS[:short_ordinal] = lambda { |date| date.strftime("%B #{date.day.ordinalize}") } + # Date::DATE_FORMATS[:short_ordinal] = ->(date) { date.strftime("%B #{date.day.ordinalize}") } def to_formatted_s(format = :default) if formatter = DATE_FORMATS[format] if formatter.respond_to?(:call) |