镜像直接上传:PR中的补丁

时间:2020-10-29 13:51:40

标签: ruby-on-rails rails-activestorage

我正在尝试将此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)

0 个答案:

没有答案