lib/pheme/queue_poller.rb in pheme-5.2.15 vs lib/pheme/queue_poller.rb in pheme-5.2.16

- old
+ new

@@ -157,12 +157,12 @@ Pheme.logger.info("Unsupported custom data type") value["Value"] end end - def with_optional_connection_pool_block(&block) + def with_optional_connection_pool_block(&) if connection_pool_block - ActiveRecord::Base.connection_pool.with_connection(&block) + ActiveRecord::Base.connection_pool.with_connection(&) else yield end end