Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed broken test suite - there was problem with namespacing in Depre…

…catedConstant class
  • Loading branch information...
commit 1ac20839a7609acf1f401de58d25bd7a920d4269 1 parent 8baba5f
@strzalek strzalek authored jeremy committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/deprecation.rb
View
4 railties/lib/rails/deprecation.rb
@@ -10,12 +10,12 @@ def self.deprecate(old, new)
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
Please sign in to comment.
Something went wrong with that request. Please try again.