From 1ac20839a7609acf1f401de58d25bd7a920d4269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Strza=C5=82kowski?= Date: Thu, 5 Aug 2010 05:18:29 +0800 Subject: Fixed broken test suite - there was problem with namespacing in DeprecatedConstant class --- railties/lib/rails/deprecation.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/deprecation.rb b/railties/lib/rails/deprecation.rb index c32b748ffd..3cf28e0818 100644 --- a/railties/lib/rails/deprecation.rb +++ b/railties/lib/rails/deprecation.rb @@ -10,12 +10,12 @@ module Rails def initialize(old, new) @old, @new = old, new - @target = eval "proc { #{new} }" + @target = ::Kernel.eval "proc { #{@new} }" @warned = false end def method_missing(meth, *args, &block) - ActiveSupport::Deprecation.warn("#{@old} is deprecated. Please use #{@new}") unless @warned + ::ActiveSupport::Deprecation.warn("#{@old} is deprecated. Please use #{@new}") unless @warned @warned = true target = @target.call -- cgit v1.2.3