lib/legion/extensions/helpers/transport.rb in legionio-0.3.0 vs lib/legion/extensions/helpers/transport.rb in legionio-0.3.1
- old
+ new
@@ -34,9 +34,10 @@
exchange = "#{transport_class}::Exchanges::#{lex_const}"
return Object.const_get(exchange) if transport_class::Exchanges.const_defined? lex_const
transport_class::Exchanges.const_set(lex_const, Class.new(Legion::Transport::Exchange))
@default_exchange = Kernel.const_get(exchange)
+ @default_exchange
end
end
end
end
end