lib/active_remote/rpc.rb in active_remote-3.1.3 vs lib/active_remote/rpc.rb in active_remote-3.2.0.pre

- old
+ new

@@ -32,11 +32,11 @@ def remote_call(rpc_method, request_args) rpc.execute(rpc_method, request_args) end def rpc - rpc_adapter.new(service_class) + rpc_adapter.new(service_class, endpoints) end def rpc_adapter # TODO: Make this pluggable # @@ -54,9 +54,13 @@ # # path_to_adapter.classify.constantize ::ActiveRemote::RPCAdapters::ProtobufAdapter end + end + + def remote_call(rpc_method, request_args) + self.class.remote_call(rpc_method, request_args) end def rpc self.class.rpc end