Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

explain method invertible_for [ci skip]

  • Loading branch information...
commit d4dad040c39495f30b097f7178d13c40c2e19847 1 parent 0462276
@neerajdotname neerajdotname authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  activerecord/lib/active_record/associations/association.rb
View
3  activerecord/lib/active_record/associations/association.rb
@@ -217,7 +217,8 @@ def inverse_reflection_for(record)
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
Please sign in to comment.
Something went wrong with that request. Please try again.