aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/date
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-01-28 07:36:34 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-01-28 07:36:34 +0000
commit17fee001a9d40aaed4c62f1e159242ca47182c2b (patch)
tree95add79287c7f1ff45cfd3d3405a0847deea7085 /activesupport/lib/active_support/core_ext/date
parent0eacdcf9a3e37e05f47a4ded7f0a4aff3b65fbe4 (diff)
downloadrails-17fee001a9d40aaed4c62f1e159242ca47182c2b.tar.gz
rails-17fee001a9d40aaed4c62f1e159242ca47182c2b.tar.bz2
rails-17fee001a9d40aaed4c62f1e159242ca47182c2b.zip
:db format for Date#to_s
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6060 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/core_ext/date')
-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: