diff --git a/source/en/mongoid/docs/relations.haml b/source/en/mongoid/docs/relations.haml index 81a7ceb..be44dd6 100644 --- a/source/en/mongoid/docs/relations.haml +++ b/source/en/mongoid/docs/relations.haml @@ -96,6 +96,20 @@ embedded_in :alcoholic, class_name: "Lush", inverse_of: :whiskey end + %p + In class Lush :whiskey is the variable name of + the relation. This relation contains many classes named Drink. + The inverse_of: :alcoholic states that class Drink + will have a variable named :alcoholic containing the inverse + relationship pointing back to :whiskey. + + %p + In the class Drink, :alcoholic is the variable + name containing the relationship and that :alcoholic is a class + of Lush. Lush contains a variable named + :whiskey that points back to Drink. + + %h3 Validations %p