Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Joe Meirow's Profile

GitHub User: jmeirow

Comments by Joe Meirow

Avatar

Has anyone faced this issue:

# example code
def member_logged_in(*args)
binding.pry
@member = Member.find(args[0])
@club = Club.find(@member.club_id])
mail(:to =>.....)
end

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.

Thoughts?