Permalink
Browse files

remove DeprecatedConstantToMethodProxy again

  • Loading branch information...
1 parent 55e2e2e commit d897acfbb11aaa2d7f3138e1f9772546ecb6f981 Sven Fuchs committed Jun 22, 2008
Showing with 0 additions and 17 deletions.
  1. +0 −17 activesupport/lib/active_support/deprecation.rb
@@ -194,23 +194,6 @@ def warn(callstack, called, args)
ActiveSupport::Deprecation.warn("#{@old_const} is deprecated! Use #{@new_const} instead.", callstack)
end
end
-
- class DeprecatedConstantToMethodProxy < DeprecationProxy #:nodoc:
- def initialize(old_const, new_target, new_method)
- @old_const = old_const
- @new_target = new_target
- @new_method = new_method
- end
-
- private
- def target
- @new_target.__send__(@new_method)
- end
-
- def warn(callstack, called, args)
- ActiveSupport::Deprecation.warn("#{@old_const} is deprecated! Use #{@new_target.inspect}.#{@new_method} instead.", callstack)
- end
- end
end
end

0 comments on commit d897acf

Please sign in to comment.