aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2007-02-04 21:17:49 +0000
committerMichael Koziarski <michael@koziarski.com>2007-02-04 21:17:49 +0000
commit517bf0814e95922d8675b20abc70fa0536044bbe (patch)
treef2a3101297903b89717dd0cf431dae25e8ce258e /activesupport
parent69b0e5c44a05fddcac996c7aaaca61cb3188da5e (diff)
downloadrails-517bf0814e95922d8675b20abc70fa0536044bbe.tar.gz
rails-517bf0814e95922d8675b20abc70fa0536044bbe.tar.bz2
rails-517bf0814e95922d8675b20abc70fa0536044bbe.zip
Fix for DateTime superclass mismatch errors seen on some linux distributions. [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6121 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/date_time.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/date_time.rb b/activesupport/lib/active_support/core_ext/date_time.rb
index 67463d2352..dc5dceaea5 100644
--- a/activesupport/lib/active_support/core_ext/date_time.rb
+++ b/activesupport/lib/active_support/core_ext/date_time.rb
@@ -1,5 +1,4 @@
+require 'date'
require "#{File.dirname(__FILE__)}/time/behavior"
-class DateTime
- include ActiveSupport::CoreExtensions::Time::Behavior
-end \ No newline at end of file
+DateTime.send(:include, ActiveSupport::CoreExtensions::Time::Behavior)