Permalink
Browse files

metaclass deprecated in 2.3.6

  • Loading branch information...
1 parent ffc45f3 commit 763f32ab47b96289a4d7b7107411a83164bf69de @jeremy jeremy committed Feb 25, 2010
@@ -5,7 +5,6 @@
require 'active_support/core_ext/object/conversions'
require 'active_support/core_ext/object/instance_variables'
-require 'active_support/core_ext/object/metaclass'
require 'active_support/core_ext/object/singleton_class'
require 'active_support/core_ext/object/misc'
require 'active_support/core_ext/object/extending'
@@ -1,14 +0,0 @@
-require 'active_support/deprecation'
-
-class Object
- # Get object's meta (ghost, eigenclass, singleton) class.
- #
- # Deprecated in favor of Object#singleton_class.
- def metaclass
- class << self
- self
- end
- end
-
- deprecate :metaclass => :singleton_class
-end
@@ -123,13 +123,6 @@ def test_singleton_class
o = Object.new
assert_equal class << o; self end, o.singleton_class
end
-
- def test_metaclass_deprecated
- o = Object.new
- assert_deprecated /use singleton_class instead/ do
- assert_equal o.singleton_class, o.metaclass
- end
- end
end
class ObjectInstanceVariableTest < Test::Unit::TestCase

0 comments on commit 763f32a

Please sign in to comment.