mirror of
https://github.com/ditkrg/rabbit_carrots.git
synced 2026-01-25 15:12:55 +00:00
Constantizes string
This commit is contained in:
@@ -5,7 +5,10 @@ namespace :rmq do
|
||||
task subscriber: :environment do
|
||||
Rails.application.eager_load!
|
||||
|
||||
channels = RabbitCarrots::Configuration.routing_key_mappings
|
||||
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 }
|
||||
end
|
||||
|
||||
Rails.logger = Logger.new($stdout)
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module RabbitCarrots
|
||||
VERSION = "0.1.3"
|
||||
VERSION = "0.1.4"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user