aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-12-16 19:00:48 -0800
committerXavier Noria <fxn@hashref.com>2012-12-16 19:00:48 -0800
commitd8607c1d7fa063873a570cace5bd4c4f55bb8af9 (patch)
treebc4e986eb27058679f7e641a40b531c9ca706d8c
parentaefdcfdf3daab74b337035060e86f6854d80ab1e (diff)
parentd963ff433cb6d80c69a315acf8ab038d78bd3fc0 (diff)
downloadrails-d8607c1d7fa063873a570cace5bd4c4f55bb8af9.tar.gz
rails-d8607c1d7fa063873a570cace5bd4c4f55bb8af9.tar.bz2
rails-d8607c1d7fa063873a570cace5bd4c4f55bb8af9.zip
Merge pull request #8532 from ptn/add_missing_require
Add missing requires to core_ext/integer/time
-rw-r--r--activesupport/lib/active_support/core_ext/integer/time.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/integer/time.rb b/activesupport/lib/active_support/core_ext/integer/time.rb
index 9fb4f6b73a..82080ffe51 100644
--- a/activesupport/lib/active_support/core_ext/integer/time.rb
+++ b/activesupport/lib/active_support/core_ext/integer/time.rb
@@ -1,3 +1,6 @@
+require 'active_support/duration'
+require 'active_support/core_ext/numeric/time'
+
class Integer
# Enables the use of time calculations and declarations, like <tt>45.minutes +
# 2.hours + 4.years</tt>.