File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
activerecord/lib/active_record Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -715,7 +715,7 @@ def automatic_inverse_of
715
715
" is disabled.\n \n " \
716
716
"If automatic inference is intended, you can consider enabling" \
717
717
" `config.active_record.automatically_invert_plural_associations`.\n \n " \
718
- "If automatic inference is not intended, you can silence this warning by defining the association with `inverse_of: false `."
718
+ "If automatic inference is not intended, you can silence this warning by defining the association with `inverse_of: nil `."
719
719
)
720
720
reflection = nil
721
721
end
Original file line number Diff line number Diff line change @@ -1090,7 +1090,7 @@ And on a per-association basis:
1090
1090
class Comment < ApplicationRecord
1091
1091
self.automatically_invert_plural_associations = true
1092
1092
1093
- belongs_to :post, inverse_of: false
1093
+ belongs_to :post, inverse_of: nil
1094
1094
end
1095
1095
```
1096
1096
You can’t perform that action at this time.
0 commit comments