RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: jmeirow
Has anyone faced this issue:
# example code
@member = Member.find(args)
@club = Club.find(@member.club_id])
Under 'rails console', I can 'find' a member from the console prompt => @member.club_id returns a value.
When the same code is invoked via worker in Sidekiq, from the pry prompt, @member.club_id returns nil.