From 948c1e506c63fc1e74fd24d8ca73cfc6de0e725f Mon Sep 17 00:00:00 2001 From: Jay Hayes Date: Thu, 13 Dec 2012 14:04:21 -0600 Subject: Elaborate using `inverse_of` with presence validation --- guides/source/active_record_validations.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'guides') diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index 25a0f86ae3..ab7487293d 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -513,7 +513,8 @@ class LineItem < ActiveRecord::Base end ``` -You should also be sure to have a proper `:inverse_of` as well: +In order to validate associated records whose presence is required, you must +specify the `:inverse_of` the association: ```ruby class Order < ActiveRecord::Base -- cgit v1.2.3