diff options
author | Jay Hayes <jay.hayes@dynetics.com> | 2012-12-13 14:04:21 -0600 |
---|---|---|
committer | Jay Hayes <jay.hayes@dynetics.com> | 2012-12-13 14:04:21 -0600 |
commit | 948c1e506c63fc1e74fd24d8ca73cfc6de0e725f (patch) | |
tree | 2ab77282ed10641638ab018ba18a1bae497c7558 | |
parent | d5badea28c77f2176bdac9bf68a0e2c3c30fecd3 (diff) | |
download | rails-948c1e506c63fc1e74fd24d8ca73cfc6de0e725f.tar.gz rails-948c1e506c63fc1e74fd24d8ca73cfc6de0e725f.tar.bz2 rails-948c1e506c63fc1e74fd24d8ca73cfc6de0e725f.zip |
Elaborate using `inverse_of` with presence validation
-rw-r--r-- | guides/source/active_record_validations.md | 3 |
1 files changed, 2 insertions, 1 deletions
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 |