-
Notifications
You must be signed in to change notification settings - Fork 115
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
NoMethodError (undefined method `perform_async' for Recommendable::Workers::Sidekiq:Class) #68
Comments
Does sidekiq appear before recommendable in your Gemfile? It should. |
Hmm. I wonder how I can best make Gemfile ordering not matter? |
+1 👍 |
Thanks alot mhuggins.. as you said gem order change worked like a charm :) 👍 |
@davidcelis - The reason this happens is that when your gem is included (via I think there are a few possible approaches to resolve this issue:
I'm sure there are some other approaches I haven't considered as well. |
Yeah, the reason is something I'm familiar... The best approach to take was what's been bugging me. Maybe approach 2 is the best? Require that people explicitly bundle an extra package to provide the job. If they don't, they can manually update similarities and recommendations like the user in #77 was asking about. |
Hm. As much as I hate the idea of a million little recommendable baby gems (I'd rather be able to just detect a configuration), maybe this IS the best approach.
I could even try to break Redis out into An organization for this would be easy enough. |
Oh, and @mhuggins, I really appreciate the suggestion! This is sounding more and more like the right choice, so thanks! |
when am trying to give a like am getting following error
NoMethodError (undefined method `perform_async' for Recommendable::Workers::Sidekiq:Class)
In my controller :
@vote = Vote.create(:option_id => params[:option_id], :dbrick_id => params[:dbrick_id], :user_id => current_user.id)
@vote.save!
current_user.like(@vote.dbrick) #getting error in this line
logger.info("Voted")
Versions:
Sidekiq : 2.8.0
Rails : 3.1.11
Ruby: 1.9.3p194
Recommendable : 2.1.0.1
The text was updated successfully, but these errors were encountered: