method

check_validity_of_inverse!

rails latest stable - Class: ActiveRecord::Reflection::AssociationReflection

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.2.1) is shown here.

check_validity_of_inverse!()
public

No documentation available.

# 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