RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: jmeirow
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?
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?