lib/templates/initializer.rb in outboxable-0.1.2 vs lib/templates/initializer.rb in outboxable-0.1.3

- old
+ new

@@ -1,6 +1,6 @@ -# This monkey patch allows you to customize the message format that you publish to your broker. +# This monkey patch allows you to customize the message format that you publish to your broker. # By default, Outboxable publishes a CloudEvent message to your broker. module Outboxable module RabbitMq class Publisher # Override this method to customize the message format that you publish to your broker @@ -27,10 +27,10 @@ config.message_broker = :rabbitmq # RabbitMQ configurations config.rabbitmq_host = ENV.fetch('RABBITMQ__HOST') config.rabbitmq_port = ENV.fetch('RABBITMQ__PORT', 5672) - config.rabbitmq_user = ENV.fetch('RABBITMQ__USER') + config.rabbitmq_user = ENV.fetch('RABBITMQ__USERNAME') config.rabbitmq_password = ENV.fetch('RABBITMQ__PASSWORD') config.rabbitmq_vhost = ENV.fetch('RABBITMQ__VHOST') config.rabbitmq_event_bus_exchange = ENV.fetch('EVENTBUS__EXCHANGE_NAME') end