File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2770,7 +2770,7 @@ The `:association_foreign_key` can be found on a `has_and_belongs_to_many`
2770
2770
relationship. By convention, Rails assumes that the column in the join table
2771
2771
used to hold the foreign key pointing to the other model is the name of that
2772
2772
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:
2774
2774
2775
2775
``` ruby
2776
2776
class User < ApplicationRecord
@@ -3301,4 +3301,4 @@ end
3301
3301
In this example, the ` find_and_log ` method performs a query on the association
3302
3302
and logs the query details using the owner's logger. The method accesses the
3303
3303
owner's logger via ` proxy_association.owner ` and the association's name via
3304
- ` proxy_association.reflection ` .name.
3304
+ ` proxy_association.reflection.name ` .
You can’t perform that action at this time.
0 commit comments