fix next if /^__.+__$/ to /^(__.+__|object_id)$/, since object_id will complain if it is removed

This commit is contained in:
Steven Soroka
2011-04-28 15:24:50 -05:00
parent 2f11364417
commit 888cbe8f09
+1 -1
View File
@@ -135,7 +135,7 @@ module Breakpoint
end end
instance_methods.each do |method| instance_methods.each do |method|
next if method[/^__.+__$/] next if method[/^(__.+__|object_id)$/]
undef_method method undef_method method
end end