diff options
author | Rhett Sutphin <rhett@detailedbalance.net> | 2012-06-25 14:54:40 -0500 |
---|---|---|
committer | Rhett Sutphin <rhett@detailedbalance.net> | 2012-06-25 14:54:40 -0500 |
commit | e6d4dc3ec4e6e3d4dd9e5db6cdd91f691d546609 (patch) | |
tree | 19c81677ac2d8286967510f5a8985c76fee9523a | |
parent | 51b055b6d11f439ce16c30167ad807d2a7b70532 (diff) | |
download | rails-e6d4dc3ec4e6e3d4dd9e5db6cdd91f691d546609.tar.gz rails-e6d4dc3ec4e6e3d4dd9e5db6cdd91f691d546609.tar.bz2 rails-e6d4dc3ec4e6e3d4dd9e5db6cdd91f691d546609.zip |
Add missing require.
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.
-rw-r--r-- | activesupport/lib/active_support/core_ext/time/calculations.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/time/calculations.rb b/activesupport/lib/active_support/core_ext/time/calculations.rb index 28c8b53b78..e8623a9c54 100644 --- a/activesupport/lib/active_support/core_ext/time/calculations.rb +++ b/activesupport/lib/active_support/core_ext/time/calculations.rb @@ -1,5 +1,6 @@ require 'active_support/duration' require 'active_support/core_ext/time/conversions' +require 'active_support/time_with_zone' class Time COMMON_YEAR_DAYS_IN_MONTH = [nil, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] |