Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug - NameError: wrong constant name #37

Open
johnmcauley opened this issue Jul 24, 2015 · 1 comment
Open

Bug - NameError: wrong constant name #37

johnmcauley opened this issue Jul 24, 2015 · 1 comment

Comments

@johnmcauley
Copy link

Hey guys,

Trying to get superworker working but get a "NameError: wrong constant name " on initialisation. I see someone had a similar issue here. I declare new workers in a superworkers.rb in initialzers:

Superworker.define(:RecsWorker) do
TestWorker.perform_async
RecommendationsWorker.perform_async
end

I'm using Rails 4.

Thanks,

j

@imogenkinsman
Copy link

@johnmcauley your superworkers initialization file shouldn't make perform_async calls. It should look something like this:

Superworker.define(:RecsWorker) do
  TestWorker
  RecommendationsWorker
end

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

No branches or pull requests

2 participants