method
check_validity_of_inverse!
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveRecord::Reflection::AssociationReflection
check_validity_of_inverse!()
public
Hide source
# File activerecord/lib/active_record/reflection.rb, line 334 def check_validity_of_inverse! unless polymorphic? if has_inverse? && inverse_of.nil? raise InverseOfAssociationNotFoundError.new(self) end end end