aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2013-03-29 15:38:16 -0400
committerNeeraj Singh <neerajdotname@gmail.com>2013-03-29 15:38:16 -0400
commitd4dad040c39495f30b097f7178d13c40c2e19847 (patch)
tree7e479bc4c9c5041842e2f44719048e792cbf87a3 /activerecord/lib/active_record
parent0462276909937003bb644742dd1d492cba4e37fa (diff)
downloadrails-d4dad040c39495f30b097f7178d13c40c2e19847.tar.gz
rails-d4dad040c39495f30b097f7178d13c40c2e19847.tar.bz2
rails-d4dad040c39495f30b097f7178d13c40c2e19847.zip
explain method invertible_for [ci skip]
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/associations/association.rb3
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