Permalink
Browse files

Forwarding logic cleanup

  • Loading branch information...
1 parent 9e72b61 commit 47d8d12bb02ab66b3f55744c480225bed38450ff Nick Sieger committed Jun 21, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/klomp/client.rb
View
@@ -109,13 +109,12 @@ def log
READ_ONLY_METHODS = [
:ack,
:nack,
- :unsubscribe,
]
def method_missing(method, *args, &block)
case method
when *WRITE_ONLY_METHODS
- @write_conn.send(method, *args, &block)
+ @write_conn.__send__(method, *args, &block)
when *READ_ONLY_METHODS
@read_conn.map {|c| c.__send__(method, *args, &block) }
else

0 comments on commit 47d8d12

Please sign in to comment.