diff --git a/Gemfile.lock b/Gemfile.lock index da67f7a..ecd02a9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - rabbit_carrots (0.1.4) + rabbit_carrots (0.1.5) activesupport (>= 6.0.0) bunny (>= 2.19.0) connection_pool (~> 2.3.0) diff --git a/lib/rabbit_carrots/tasks/rmq.rake b/lib/rabbit_carrots/tasks/rmq.rake index e2fd008..63f2583 100644 --- a/lib/rabbit_carrots/tasks/rmq.rake +++ b/lib/rabbit_carrots/tasks/rmq.rake @@ -7,7 +7,7 @@ namespace :rmq do channels = RabbitCarrots.configuration.routing_key_mappings.map do |mapping| # This will be supplied in initializer. At that time, the Handler will not be available to be loaded and will throw Uninitialized Constant - { **mapping, handler_class: mapping[:handler_class].constantize } + { **mapping, handler: mapping[:handler].constantize } end Rails.logger = Logger.new($stdout) diff --git a/lib/rabbit_carrots/version.rb b/lib/rabbit_carrots/version.rb index 76af194..e306154 100644 --- a/lib/rabbit_carrots/version.rb +++ b/lib/rabbit_carrots/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module RabbitCarrots - VERSION = "0.1.5" + VERSION = "0.1.6" end