Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix incorrect example in mongoid tips for accessing a user in ActiveReco... #194

Merged
merged 1 commit into from

2 participants

Robert Beekman Durran Jordan
Robert Beekman

...rd

Durran Jordan durran merged commit 7aecc32 into from
Durran Jordan
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  source/en/mongoid/docs/tips.haml
2  source/en/mongoid/docs/tips.haml
View
@@ -235,7 +235,7 @@
field :user_id, type: Integer
def user
- @user ||= Band.where(id: user_id).first
+ @user ||= User.find(user_id)
end
def user=(user)
Something went wrong with that request. Please try again.