Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

Undefined method 'enqueue' for Active job #11

Open
jgunnink opened this issue Apr 12, 2019 · 0 comments
Open

Undefined method 'enqueue' for Active job #11

jgunnink opened this issue Apr 12, 2019 · 0 comments

Comments

@jgunnink
Copy link

jgunnink commented Apr 12, 2019

Hello,

Firstly, thank you for this gem. I'm hoping to get some good use out of it.

I am attempting to use this gem in my app as a drop-in replacement for redis/sidekiq which is running background mail tasks.

Following the readme, I've setup the gem, and deployed the app. The application functions normally until a request to use the gem is fired. Specifically, I'm using devise to handle delivery of mail with the deliver_later

Code:

  # Override Devise notification to use background messaging queue.
  def send_devise_notification(notification, *args)
    devise_mailer.send(notification, self, *args).deliver_later
  end

Running this line of code yields in the following:

NoMethodError (undefined method `enqueue' for ActiveJob::GoogleCloudPubsub::Adapter:Class):

Looking through the gem source, I can see that the method does indeed exist, however at runtime it appears it's not available. Are there any additional setup configs which are perhaps assumed or is there something I've missed which could cause this?

I'm running Ruby 2.5.3 and Rails 4.2.1

Thank you for any help. 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant