提交 d440fa07 编写于 作者: A Aaron Patterson

use drop rather than calculate the array length

上级 ac70ec64
......@@ -48,7 +48,7 @@ def graft(*associations)
end
def join_associations
join_parts.last(join_parts.length - 1)
join_parts.drop 1
end
def join_base
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册