diff options
author | Michael Koziarski <michael@koziarski.com> | 2007-02-27 23:25:16 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2007-02-27 23:25:16 +0000 |
commit | 1902ef6caa68329aad0cf6ebfebdaa9ce2ea8427 (patch) | |
tree | 8ad84d0d19be2cf3d9320ef18cbc839a7b156537 | |
parent | 203932ec88974acf8d86541cf0357cf9fc013143 (diff) | |
download | rails-1902ef6caa68329aad0cf6ebfebdaa9ce2ea8427.tar.gz rails-1902ef6caa68329aad0cf6ebfebdaa9ce2ea8427.tar.bz2 rails-1902ef6caa68329aad0cf6ebfebdaa9ce2ea8427.zip |
Give DateTime correct .to_s implementations, lets it play nice with ActiveRecord quoting. [gbuesing] Closes #7649
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6263 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | activesupport/CHANGELOG | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/core_ext/date_time.rb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index 09ea8159a7..7a5a2f5586 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Give DateTime correct .to_s implementations, lets it play nice with ActiveRecord quoting. [gbuesing] + * Add File.atomic_write, allows you to write large files in an atomic manner, preventing users from seeing half written files. [Koz] * Allow users to provide custom formatters to Logger. [aeden] diff --git a/activesupport/lib/active_support/core_ext/date_time.rb b/activesupport/lib/active_support/core_ext/date_time.rb index dc5dceaea5..535d94abb7 100644 --- a/activesupport/lib/active_support/core_ext/date_time.rb +++ b/activesupport/lib/active_support/core_ext/date_time.rb @@ -1,4 +1,6 @@ require 'date' require "#{File.dirname(__FILE__)}/time/behavior" +require "#{File.dirname(__FILE__)}/date_time/conversions" DateTime.send(:include, ActiveSupport::CoreExtensions::Time::Behavior) +DateTime.send(:include, ActiveSupport::CoreExtensions::DateTime::Conversions)
\ No newline at end of file |