method
polymorphic_inverse_of
Ruby on Rails latest stable (v3.2.13)
-
0 notes -
Class: ActiveRecord::Reflection::AssociationReflection
polymorphic_inverse_of(associated_class)
public
Hide source
# File activerecord/lib/active_record/reflection.rb, line 288 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


