rails/rails — pull request #6857 by rsutphin (2012-06-25 20:36:05+00:00)
Title: Missing require breaks Time.=== when selectively loading ActiveSupport core_exts in 3.2.4+

If you selectively require core_exts (e.g., `require 'active_support/core_ext/string'`), it is possible for
`active_support/core_ext/time/calculations` to be required when `ActiveSupport::TimeWithZone` is not available. If this happens, the next call to `Time.=== will` fail with a `NameError`. This pull fixes this issue.

Then nature of this problem is not amenable to unit testing, but I can provide a [script][gist] which demonstrates the problem.

This bug was introduced in Rails 3.2.4 and is present in 3.2.5, 3.2.6, 3-2-stable, and master.

[gist]: https://gist.github.com/2990831/