lib/soaspec/exchange_handlers/soap_handler.rb in soaspec-0.2.3 vs lib/soaspec/exchange_handlers/soap_handler.rb in soaspec-0.2.4
- old
+ new
@@ -216,9 +216,10 @@
operations = tmp_class.operations
if operations.include? method_name
tmp_class.operation = method_name
exchange = Exchange.new(method_name, *args)
exchange.exchange_handler = tmp_class
+ yield exchange if block_given?
exchange
else
super
end
end
\ No newline at end of file