Skip to content

Commit

Permalink
Add missing require so that DateTime has the right superclass
Browse files Browse the repository at this point in the history
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

(cherry picked from commit 78f7d5b)
  • Loading branch information
pixeltrix committed Jul 10, 2013
1 parent 5b790ca commit 9a6c063
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'date'
require 'active_support/core_ext/object/acts_like'

class DateTime
Expand Down

0 comments on commit 9a6c063

Please sign in to comment.