1
0
Fork 0
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 up
cfd324b4b6

Hopefully there is other stuff lost in translation...
This commit is contained in:
Jay Hayes 2012-12-13 13:58:49 -06:00
parent e927ba9953
commit d5badea28c

View file

@ -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