method
polymorphic_inverse_of

polymorphic_inverse_of(associated_class)
public
Hide source
# File activerecord/lib/active_record/reflection.rb, line 396 def polymorphic_inverse_of(associated_class) if has_inverse? if inverse_relationship = associated_class._reflect_on_association(options[:inverse_of]) inverse_relationship else raise InverseOfAssociationNotFoundError.new(self, associated_class) end end end