diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-05-11 20:15:53 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-05-11 20:15:53 -0700 |
commit | 98ade30e421e2c9e405060bba87ecbd092f11698 (patch) | |
tree | 47e0359fb71bbd7432c743f4798261ed8072bef7 /guides/source/association_basics.md | |
parent | d9e8ec61a4988f3836d8c6aa830b6ffd6a3a940a (diff) | |
parent | 346cda4f348993b45a894c1351e2cca03d72dee2 (diff) | |
download | rails-98ade30e421e2c9e405060bba87ecbd092f11698.tar.gz rails-98ade30e421e2c9e405060bba87ecbd092f11698.tar.bz2 rails-98ade30e421e2c9e405060bba87ecbd092f11698.zip |
Merge pull request #10574 from wangjohn/automatic_inverse_of_documentation
Adding documentation to the automatic inverse_of finder.
Diffstat (limited to 'guides/source/association_basics.md')
-rw-r--r-- | guides/source/association_basics.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md index 8d203d265a..16a5241319 100644 --- a/guides/source/association_basics.md +++ b/guides/source/association_basics.md @@ -693,6 +693,17 @@ There are a few limitations to `inverse_of` support: * They do not work with `:as` associations. * For `belongs_to` associations, `has_many` inverse associations are ignored. +Every association will attempt to automatically find the inverse association +and set the `:inverse_of` option heuristically (based on the association name). +Most associations with standard names will be supported. However, associations +that contain the following options will not have their inverses set +automatically: + +* :conditions +* :through +* :polymorphic +* :foreign_key + Detailed Association Reference ------------------------------ |