Browse files

Merge pull request #8780 from diogomafra/require_core_ext

Require 'active_support/core_ext/module/aliasing' in the infinite_comparable module

When requiring 'active_support/core_ext', the following error is raised:

   undefined method `alias_method_chain' for Date:Class (NoMethodError)

Adding the missing require to this module fixes the problem.
  • Loading branch information...
2 parents 2f8e5f6 + 7003e71 commit cea4f76ff954cd8c57484b2bce456c3ef03a3c5e @carlosantoniodasilva carlosantoniodasilva committed Jan 6, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 activesupport/lib/active_support/core_ext/infinite_comparable.rb
1 activesupport/lib/active_support/core_ext/infinite_comparable.rb
@@ -1,4 +1,5 @@
require 'active_support/concern'
+require 'active_support/core_ext/module/aliasing'
require 'active_support/core_ext/object/try'
module InfiniteComparable

0 comments on commit cea4f76

Please sign in to comment.