Skip to content

Commit aed008e

Browse files
committed
Update association_basics.md
1 parent 3a91006 commit aed008e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/source/association_basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2770,7 +2770,7 @@ The `:association_foreign_key` can be found on a `has_and_belongs_to_many`
27702770
relationship. By convention, Rails assumes that the column in the join table
27712771
used to hold the foreign key pointing to the other model is the name of that
27722772
model with the suffix `_id` added. The `:association_foreign_key` option lets
2773-
you set the name of the foreign key directly For example:
2773+
you set the name of the foreign key directly. For example:
27742774

27752775
```ruby
27762776
class User < ApplicationRecord
@@ -3301,4 +3301,4 @@ end
33013301
In this example, the `find_and_log` method performs a query on the association
33023302
and logs the query details using the owner's logger. The method accesses the
33033303
owner's logger via `proxy_association.owner` and the association's name via
3304-
`proxy_association.reflection`.name.
3304+
`proxy_association.reflection.name`.

0 commit comments

Comments
 (0)