aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/time.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-21 14:18:54 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-21 14:18:54 +0000
commit6ff54f70fdbddf2d068982e6ea4242b6b95104df (patch)
tree8147f248fd83c30026798814950efe01410c5eb6 /activesupport/lib/active_support/core_ext/time.rb
parent675fd47e8373db9172a22411af8b1aec5a278aa5 (diff)
downloadrails-6ff54f70fdbddf2d068982e6ea4242b6b95104df.tar.gz
rails-6ff54f70fdbddf2d068982e6ea4242b6b95104df.tar.bz2
rails-6ff54f70fdbddf2d068982e6ea4242b6b95104df.zip
Added Time::Calculations to ask for things like Time.now.tomorrow, Time.now.yesterday, Time.now.months_ago(4) #580 [DP|Flurin]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/core_ext/time.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/time.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/time.rb b/activesupport/lib/active_support/core_ext/time.rb
new file mode 100644
index 0000000000..e13cb07def
--- /dev/null
+++ b/activesupport/lib/active_support/core_ext/time.rb
@@ -0,0 +1,5 @@
+require File.dirname(__FILE__) + '/time/calculations'
+
+class Time#:nodoc:
+ include ActiveSupport::CoreExtensions::Time::Calculations
+end