提交 20405e51 编写于 作者: C Carlos Antonio da Silva

Use available method rather than macro name checking

上级 fe24ba88
......@@ -77,7 +77,7 @@ def foreign_key_present?
end
def ensure_mutable
if source_reflection.macro != :belongs_to
unless source_reflection.belongs_to?
raise HasManyThroughCantAssociateThroughHasOneOrManyReflection.new(owner, reflection)
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册