diff options
Diffstat (limited to 'activesupport/lib/active_support/core_ext/date_time.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext/date_time.rb | 8 |
1 files changed, 5 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 c99d1283fd..7ce1b78090 100644 --- a/activesupport/lib/active_support/core_ext/date_time.rb +++ b/activesupport/lib/active_support/core_ext/date_time.rb @@ -3,6 +3,8 @@ require "#{File.dirname(__FILE__)}/time/behavior" require "#{File.dirname(__FILE__)}/date_time/calculations" require "#{File.dirname(__FILE__)}/date_time/conversions" -DateTime.send(:include, ActiveSupport::CoreExtensions::Time::Behavior) -DateTime.send(:include, ActiveSupport::CoreExtensions::DateTime::Calculations) -DateTime.send(:include, ActiveSupport::CoreExtensions::DateTime::Conversions) +class DateTime + include ActiveSupport::CoreExtensions::Time::Behavior + include ActiveSupport::CoreExtensions::DateTime::Calculations + include ActiveSupport::CoreExtensions::DateTime::Conversions +end |