aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/time/calculations.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-07-15 00:36:57 +0200
committerXavier Noria <fxn@hashref.com>2012-07-15 00:44:10 +0200
commitb3693bf2f827789a8b1ef5e0a3f653ed58089b1e (patch)
treeea45b4f6a5dc4dcb1bc210f1a9adee5fb0f6494b /activesupport/lib/active_support/core_ext/time/calculations.rb
parentf7ef7caac634eba23fb339a5bcfe4734e216d04d (diff)
downloadrails-b3693bf2f827789a8b1ef5e0a3f653ed58089b1e.tar.gz
rails-b3693bf2f827789a8b1ef5e0a3f653ed58089b1e.tar.bz2
rails-b3693bf2f827789a8b1ef5e0a3f653ed58089b1e.zip
adds a missing require [fixes #6896]
This file uses Time.zone, which is defined in active_support/core_ext/time/zones.rb.
Diffstat (limited to 'activesupport/lib/active_support/core_ext/time/calculations.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/time/calculations.rb1
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 d6ccd6955a..34d4d88bd3 100644
--- a/activesupport/lib/active_support/core_ext/time/calculations.rb
+++ b/activesupport/lib/active_support/core_ext/time/calculations.rb
@@ -1,6 +1,7 @@
require 'active_support/duration'
require 'active_support/core_ext/time/conversions'
require 'active_support/time_with_zone'
+require 'active_support/core_ext/time/zones'
class Time
COMMON_YEAR_DAYS_IN_MONTH = [nil, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]