提交 d619e399 编写于 作者: J Jon Leighton

Fix small bug which was shown by the last commit

上级 1e2525bf
......@@ -2246,7 +2246,7 @@ def join_relation(joining_relation)
end
def table
if reflection.macro == :has_and_belongs_to_many
if @tables.last.is_a?(Array)
@tables.last.first
else
@tables.last
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册