lib/active_remote/rpc.rb in active_remote-5.0.0.pre vs lib/active_remote/rpc.rb in active_remote-5.0.0.rc1

- old
+ new

@@ -50,9 +50,15 @@ ::ActiveRemote::RPCAdapters::ProtobufAdapter end end + def assign_attributes_from_rpc(response) + new_attributes = self.class.build_from_rpc(response.to_hash) + @attributes.update(new_attributes) + add_errors(response.errors) if response.respond_to?(:errors) + end + def remote_call(rpc_method, request_args) self.class.remote_call(rpc_method, request_args) end def rpc