aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/duration.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-01-02 09:08:14 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2008-01-02 09:08:14 +0000
commitff47ba9adb39976723752abfd6fbb72d7a55eaf1 (patch)
tree50c43355103eef0597958b3443694128604424ed /activesupport/lib/active_support/duration.rb
parente21c48baf7a021a5c65004977f9359bc301aac9d (diff)
downloadrails-ff47ba9adb39976723752abfd6fbb72d7a55eaf1.tar.gz
rails-ff47ba9adb39976723752abfd6fbb72d7a55eaf1.tar.bz2
rails-ff47ba9adb39976723752abfd6fbb72d7a55eaf1.zip
Ruby 1.9 compat: add #raise to AS::BasicObject, fixup Duration argument error. Closes #10594.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8523 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/duration.rb')
-rw-r--r--activesupport/lib/active_support/duration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/duration.rb b/activesupport/lib/active_support/duration.rb
index 82b38e79b5..ff51b49dcf 100644
--- a/activesupport/lib/active_support/duration.rb
+++ b/activesupport/lib/active_support/duration.rb
@@ -82,7 +82,7 @@ module ActiveSupport
t.advance(type => sign * number)
end
else
- raise ArgumentError, "expected a time or date, got #{time.inspect}"
+ raise ::ArgumentError, "expected a time or date, got #{time.inspect}"
end
end
end