diff options
author | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2010-08-05 05:18:29 +0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-08-26 23:15:42 -0700 |
commit | 1ac20839a7609acf1f401de58d25bd7a920d4269 (patch) | |
tree | e85b39803148009948672402ba4c57a35f2b4a14 /railties | |
parent | 8baba5f13ea67f62d78318490f833e43c9674664 (diff) | |
download | rails-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')
-rw-r--r-- | railties/lib/rails/deprecation.rb | 4 |
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 |