Skip to content

Commit

Permalink
Don't undefine __id__
Browse files Browse the repository at this point in the history
  • Loading branch information
jferris committed Jul 5, 2011
1 parent 90021a7 commit da96a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/factory_girl/definition_proxy.rb
@@ -1,6 +1,6 @@
module FactoryGirl
class DefinitionProxy
UNPROXIED_METHODS = %w(__send__ nil? send object_id extend instance_eval initialize block_given? raise)
UNPROXIED_METHODS = %w(__send__ __id__ nil? send object_id extend instance_eval initialize block_given? raise)

(instance_methods + private_instance_methods).each do |method|
undef_method(method) unless UNPROXIED_METHODS.include?(method)
Expand Down

0 comments on commit da96a87

Please sign in to comment.