diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2013-03-29 15:38:16 -0400 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2013-03-29 15:38:16 -0400 |
commit | d4dad040c39495f30b097f7178d13c40c2e19847 (patch) | |
tree | 7e479bc4c9c5041842e2f44719048e792cbf87a3 /activerecord/lib | |
parent | 0462276909937003bb644742dd1d492cba4e37fa (diff) | |
download | rails-d4dad040c39495f30b097f7178d13c40c2e19847.tar.gz rails-d4dad040c39495f30b097f7178d13c40c2e19847.tar.bz2 rails-d4dad040c39495f30b097f7178d13c40c2e19847.zip |
explain method invertible_for [ci skip]
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations/association.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/association.rb b/activerecord/lib/active_record/associations/association.rb index 868095f068..a5c8d6cf77 100644 --- a/activerecord/lib/active_record/associations/association.rb +++ b/activerecord/lib/active_record/associations/association.rb @@ -217,7 +217,8 @@ module ActiveRecord reflection.inverse_of end - # Is this association invertible? Can be redefined by subclasses. + # Returns true if inverse association on the given record needs to be set. + # This method is redefined by subclasses. def invertible_for?(record) inverse_reflection_for(record) end |