Rails 6: Initialization autoloaded the constant AuthTrail::GeocodeJob
vitobotta opened this issue · comments
HI, I am seeing this message with Rails 6. Any idea of how to fix? Thanks!
Fixed by changing the initializer as follows:
module AuthTrail
class GeocodeJob < ActiveJob::Base
queue_as :low
end
end
Another workaround I've found:
Rails.configuration.to_prepare do
AuthTrail::GeocodeJob.queue_as :low
end