aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/date/conversions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/core_ext/date/conversions.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/date/conversions.rb3
1 files changed, 2 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 4b9388dacd..8f48ccacde 100644
--- a/activesupport/lib/active_support/core_ext/date/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/date/conversions.rb
@@ -5,7 +5,8 @@ module ActiveSupport #:nodoc:
module Conversions
DATE_FORMATS = {
:short => "%e %b",
- :long => "%B %e, %Y"
+ :long => "%B %e, %Y",
+ :db => "%Y-%m-%d"
}
def self.included(klass) #:nodoc: