Skip to content

Commit

Permalink
added :object_id to methods not to undef in method builder
Browse files Browse the repository at this point in the history
  • Loading branch information
jkutner committed Jun 17, 2011
1 parent d90b59c commit f5fe64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dsl/ferrari.rb
Expand Up @@ -301,7 +301,7 @@ class MethodBuilder
public_instance_methods.each do |m| public_instance_methods.each do |m|
# maybe we shouldn't be undefing object_id. What are the implications? Can we make object_id a # maybe we shouldn't be undefing object_id. What are the implications? Can we make object_id a
# pass through to the underlying object's object_id? # pass through to the underlying object's object_id?
a = [:method_missing, :new, :public_instance_methods, :__send__, :__id__] a = [:method_missing, :new, :public_instance_methods, :__send__, :__id__, :object_id]
undef_method m.to_sym unless a.include? m.to_sym undef_method m.to_sym unless a.include? m.to_sym
end end


Expand Down

0 comments on commit f5fe64b

Please sign in to comment.