Don't undefine object_id

This commit is contained in:
Jeremy Kemper 2009-04-26 15:56:08 -07:00
parent 3bd32754e2
commit ea712364e2
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ require 'active_support/inflector'
module ActiveSupport
module Deprecation
class DeprecationProxy #:nodoc:
instance_methods.each { |m| undef_method m unless m =~ /^__/ }
instance_methods.each { |m| undef_method m unless m =~ /^__|^object_id$/ }
# Don't give a deprecation warning on inspect since test/unit and error
# logs rely on it for diagnostics.