Permalink
Browse files

explain method invertible_for [ci skip]

  • Loading branch information...
1 parent 0462276 commit d4dad040c39495f30b097f7178d13c40c2e19847 Neeraj Singh committed Mar 29, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 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

0 comments on commit d4dad04

Please sign in to comment.