Permalink
Browse files

Elaborate using `inverse_of` with presence validation

  • Loading branch information...
1 parent d5badea commit 948c1e506c63fc1e74fd24d8ca73cfc6de0e725f Jay Hayes committed Dec 13, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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

0 comments on commit 948c1e5

Please sign in to comment.