Skip to content

Lookup user by id, not username - fixes AR::RecordNotFound [WIP-334] #181

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

Merged
merged 1 commit into from
Aug 19, 2014

Conversation

Mileshosky
Copy link
Contributor

Fixes: https://assembly.com/coderwall/wips/334

RefreshUserJob performs a lookup by user_id rather than username. line 8: user = User.find(user_id)

Errors in production were averaging 6% and spiking to 12%. This should fix a majority of those errors.


it "should send welcome mail" do
mail = double("mail")
expect(NotifierMailer).to receive(:welcome_email).with(user.username).and_return(mail)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [94/80]

just3ws added a commit that referenced this pull request Aug 19, 2014
Lookup user by id, not username - fixes AR::RecordNotFound [WIP-334]
@just3ws just3ws merged commit 43dc299 into coderwall:master Aug 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants