Skip to content

Commit

Permalink
Fix the Mongoid Associations Extensions code example by changing @target
Browse files Browse the repository at this point in the history
 to _target (#4736)
  • Loading branch information
cgriego committed Mar 31, 2020
1 parent a3ebff6 commit fc3094c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/mongoid-relations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ functionality to the association. They are defined by providing a block to the a
where(country: country).first
end
def chinese
@target.select { |address| address.country == "China" }
_target.select { |address| address.country == "China" }
end
end
end
Expand Down

0 comments on commit fc3094c

Please sign in to comment.