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

use the superclass implementation

上级 9267a7d9
......@@ -119,7 +119,7 @@ def table_name_for(reflection)
# the owner
klass.table_name
else
reflection.table_name
super
end
end
......
......@@ -527,7 +527,9 @@ def through_reflection
#
def chain
@chain ||= begin
chain = source_reflection.chain + through_reflection.chain
a = source_reflection.chain
b = through_reflection.chain
chain = a + b
chain[0] = self # Use self so we don't lose the information from :source_type
chain
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册