1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

fix sentence fragment in validates_associated caution

This commit is contained in:
Jamison Dance 2010-08-26 17:48:42 -06:00
parent 366e0fbd8d
commit 4d8158d9e5

View file

@ -197,7 +197,7 @@ end
This validation will work with all of the association types.
CAUTION: Don't use +validates_associated+ on both ends of your associations, they would call each other in an infinite loop.
CAUTION: Don't use +validates_associated+ on both ends of your associations. They would call each other in an infinite loop.
The default error message for +validates_associated+ is "_is invalid_". Note that each associated object will contain its own +errors+ collection; errors do not bubble up to the calling model.