aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorSven Fuchs <svenfuchs@artweb-design.de>2008-06-22 11:39:10 +0200
committerSven Fuchs <svenfuchs@artweb-design.de>2008-06-22 11:39:10 +0200
commitd897acfbb11aaa2d7f3138e1f9772546ecb6f981 (patch)
treeb13a11fd59dc3437365a7ce43c608b2afccaef0b /activesupport/lib
parent55e2e2e8b4efbe6fdb0a921c19cd8be5650eab0a (diff)
downloadrails-d897acfbb11aaa2d7f3138e1f9772546ecb6f981.tar.gz
rails-d897acfbb11aaa2d7f3138e1f9772546ecb6f981.tar.bz2
rails-d897acfbb11aaa2d7f3138e1f9772546ecb6f981.zip
remove DeprecatedConstantToMethodProxy again
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/deprecation.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/activesupport/lib/active_support/deprecation.rb b/activesupport/lib/active_support/deprecation.rb
index 36933b007d..ebdaf86146 100644
--- a/activesupport/lib/active_support/deprecation.rb
+++ b/activesupport/lib/active_support/deprecation.rb
@@ -194,23 +194,6 @@ module ActiveSupport
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