提交 6c471bec 编写于 作者: X Xavier Noria

Merge pull request #24939 from Neodelf/again_with_loop

Replacement cycle for readability
......@@ -124,8 +124,7 @@ def add_constraints(scope, owner, association_klass, refl, chain_head, chain_tai
scope = last_chain_scope(scope, table, owner_reflection, owner, association_klass)
reflection = chain_head
loop do
break unless reflection
while reflection
table = reflection.alias_name
unless reflection == chain_tail
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册