blob: f503a2334c8494efd9ec6268d78f96098c080cc0 [file] [log] [blame]
commit 092ce58aa8713f387ae3d0467b6d8029cf2765cd
Author: Jonathan <chapmajs@gmail.com>
Date: Sun Oct 19 22:05:26 2014 -0400
Allowing calls to private_methods
diff --git a/lib/celluloid/proxies/abstract_proxy.rb b/lib/celluloid/proxies/abstract_proxy.rb
index 6a79acb..2db7a8e 100644
--- a/lib/celluloid/proxies/abstract_proxy.rb
+++ b/lib/celluloid/proxies/abstract_proxy.rb
@@ -5,7 +5,7 @@ module Celluloid
def __class__; AbstractProxy; end
# Needed for storing proxies in data structures
- needed = [:object_id, :__id__, :hash] - instance_methods
+ needed = [:object_id, :__id__, :hash, :private_methods] - instance_methods
if needed.any?
include ::Kernel.dup.module_eval {
undef_method(*(instance_methods - needed))