我正在尝试将此PR修补到Rails 6应用中:https://github.com/rails/rails/pull/36312/files 除了修补rails引擎之外,其他所有东西都可以正常工作。
require 'active_storage/engine'
module ActiveStorage
class Engine < Rails::Engine # :nodoc:
config.active_storage.queues = ActiveSupport::InheritableOptions.new(mirror: :active_storage_mirror)
ActiveStorage.queues = { purge: queue, analysis: queue, mirror: queue }
end
end
引发错误:undefined local variable or method queue' for ActiveStorage::Engine:Class (NameError)