From ee85f154534b3e511de810050dd4513402c16a28 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 7 Jan 2010 16:43:25 -0800 Subject: Qualify constant lookup in BasicObject --- activesupport/lib/active_support/duration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/duration.rb b/activesupport/lib/active_support/duration.rb index 887a40d35e..db5afb5324 100644 --- a/activesupport/lib/active_support/duration.rb +++ b/activesupport/lib/active_support/duration.rb @@ -51,7 +51,7 @@ module ActiveSupport def self.===(other) #:nodoc: other.is_a?(Duration) - rescue NoMethodError + rescue ::NoMethodError false end -- cgit v1.2.3