From 517bf0814e95922d8675b20abc70fa0536044bbe Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Sun, 4 Feb 2007 21:17:49 +0000 Subject: 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 --- activesupport/lib/active_support/core_ext/date_time.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'activesupport/lib') 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) -- cgit v1.2.3