我要做的事情是:
2.1.2 :001 > UpdateStyleRanks.perform_async
这里是错误信息:
NoMethodError: undefined method `perform' for #<UpdateStyleRanks:0x00000002f5e388>
这是我的工作者:
# app/workers/update_style_ranks.rb
class UpdateStyleRanks
include Sidekiq::Worker
def perform
end
end