diff --git a/lib/dsl/ferrari.rb b/lib/dsl/ferrari.rb index 0d1e192..27760bf 100755 --- a/lib/dsl/ferrari.rb +++ b/lib/dsl/ferrari.rb @@ -301,7 +301,7 @@ class MethodBuilder public_instance_methods.each do |m| # 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? - 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 end