I would like to pass an array to Resque.enqueue
transactions = [ { label: :subscription, transaction_id: 411}, { label: :domain, transaction_id: 150}, { label: :email, transaction_id: 151}, { label: :domain, transaction_id: 412}, ]Resque.enqueue( NotifierJob, :success, sub_transaction_id, transfer.id, transactions )
Unfortunately I see transactions
as an empty object. When I will call
::NotifierJob.perform(:success, sub_transaction_id, transfer.id, transactions)
It works great. Why transactions
variable is empty by calling Resque.enqueue?