method
check_validity!
check_validity!()
public
Hide source
# File activerecord/lib/active_record/reflection.rb, line 249 def check_validity! check_validity_of_inverse! if has_and_belongs_to_many? && association_foreign_key == foreign_key raise HasAndBelongsToManyAssociationForeignKeyNeeded.new(self) end end