Permalink
Browse files

Add missing require so that DateTime has the right superclass

If the DateTime core extensions were loaded before the Date core extensions
then you would get a superclass mismatch as DateTime hasn't been defined
yet so it gets set to Object by the acts_like core extension.

Fixes #11206
  • Loading branch information...
1 parent 4d733d2 commit 78f7d5b652000dbb1a11d34fe370c3fa82de840c @pixeltrix pixeltrix committed Jul 10, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 activesupport/lib/active_support/core_ext/date_time/acts_like.rb
@@ -1,3 +1,4 @@
+require 'date'
require 'active_support/core_ext/object/acts_like'
class DateTime

0 comments on commit 78f7d5b

Please sign in to comment.