mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix associations presence lost in steve's reformat
55a2820cc6
messes upcfd324b4b6
Hopefully there is other stuff lost in translation...
This commit is contained in:
parent
e927ba9953
commit
d5badea28c
1 changed files with 2 additions and 2 deletions
|
@ -503,8 +503,8 @@ end
|
|||
```
|
||||
|
||||
If you want to be sure that an association is present, you'll need to test
|
||||
whether the foreign key used to map the association is present, and not the
|
||||
associated object itself.
|
||||
whether the associated object itself is present, and not the foreign key used
|
||||
to map the association.
|
||||
|
||||
```ruby
|
||||
class LineItem < ActiveRecord::Base
|
||||
|
|
Loading…
Reference in a new issue