Permalink
Browse files

Merge pull request #194 from matsimitsu/incorrect_tips

Fix incorrect example in mongoid tips for accessing a user in ActiveReco...
  • Loading branch information...
2 parents 385642c + b16b090 commit 7aecc3260d2433c9dd13735238d1743c341fd6ff @durran durran committed Oct 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/en/mongoid/docs/tips.haml
View
2 source/en/mongoid/docs/tips.haml
@@ -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)

0 comments on commit 7aecc32

Please sign in to comment.