aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2010-08-05 05:18:29 +0800
committerJeremy Kemper <jeremy@bitsweat.net>2010-08-26 23:15:42 -0700
commit1ac20839a7609acf1f401de58d25bd7a920d4269 (patch)
treee85b39803148009948672402ba4c57a35f2b4a14 /railties/lib/rails
parent8baba5f13ea67f62d78318490f833e43c9674664 (diff)
downloadrails-1ac20839a7609acf1f401de58d25bd7a920d4269.tar.gz
rails-1ac20839a7609acf1f401de58d25bd7a920d4269.tar.bz2
rails-1ac20839a7609acf1f401de58d25bd7a920d4269.zip
Fixed broken test suite - there was problem with namespacing in DeprecatedConstant class
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/deprecation.rb4
1 files changed, 2 insertions, 2 deletions
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