rails/rails — pull request #8780 by diogomafra (2013-01-06 15:16:50+00:00)
Title: Require 'active_support/core_ext/module/aliasing' in the infinite_comparable module

Hi, I'm getting the following error when requiring 'active_support/core_ext':
```
~/.rvm/gems/ruby-1.9.3-p327/bundler/gems/rails-15971c3d51f5/activesupport/lib/active_support/core_ext/infinite_comparable.rb:8:in `block in ': undefined method `alias_method_chain' for Date:Class (NoMethodError)
from ~/.rvm/gems/ruby-1.9.3-p327/bundler/gems/rails-15971c3d51f5/activesupport/lib/active_support/concern.rb:114:in `class_eval'
from ~/.rvm/gems/ruby-1.9.3-p327/bundler/gems/rails-15971c3d51f5/activesupport/lib/active_support/concern.rb:114:in `append_features'
from ~/.rvm/gems/ruby-1.9.3-p327/bundler/gems/rails-15971c3d51f5/activesupport/lib/active_support/core_ext/date/infinite_comparable.rb:4:in `include'
from ~/.rvm/gems/ruby-1.9.3-p327/bundler/gems/rails-15971c3d51f5/activesupport/lib/active_support/core_ext/date/infinite_comparable.rb:4:in `'
from ~/.rvm/gems/ruby-1.9.3-p327/bundler/gems/rails-15971c3d51f5/activesupport/lib/active_support/core_ext/date/infinite_comparable.rb:3:in `'
from ~/.rvm/gems/ruby-1.9.3-p327/bundler/gems/rails-15971c3d51f5/activesupport/lib/active_support/core_ext/date.rb:5:in `require'
from ~/.rvm/gems/ruby-1.9.3-p327/bundler/gems/rails-15971c3d51f5/activesupport/lib/active_support/core_ext/date.rb:5:in `'
from ~/.rvm/gems/ruby-1.9.3-p327/bundler/gems/rails-15971c3d51f5/activesupport/lib/active_support/core_ext.rb:3:in `require'
from ~/.rvm/gems/ruby-1.9.3-p327/bundler/gems/rails-15971c3d51f5/activesupport/lib/active_support/core_ext.rb:3:in `block in '
from ~/.rvm/gems/ruby-1.9.3-p327/bundler/gems/rails-15971c3d51f5/activesupport/lib/active_support/core_ext.rb:1:in `each'
from ~/.rvm/gems/ruby-1.9.3-p327/bundler/gems/rails-15971c3d51f5/activesupport/lib/active_support/core_ext.rb:1:in `'
from error.rb:1:in `require'
from error.rb:1:in `

'
```

## Simulating the problem

To simulate the problem is very simple, just create a script that requires core_ext:

**error.rb**
```
require 'active_support/core_ext'
```

**Gemfile**
```
source 'http://rubygems.org'
gem 'rails', github: 'rails/rails'
```

**Command**
```
bundle exec ruby error.rb
```

## Solution
As you can see in the commit, the solution is to require 'active_support/core_ext/module/aliasing' in the 'infinite_comparable' module.