Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
NoMethodError (undefined method `perform_async' for Recommendable::Workers::Sidekiq:Class) #68
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)
Sidekiq : 2.8.0
@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.