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

scoped.where_values_hash is never nil

上级 57f5fe18
......@@ -488,7 +488,7 @@ def create_record(attrs, &block)
ensure_owner_is_persisted!
transaction do
with_scope(:create => @scope[:create].merge(scoped.where_values_hash || {})) do
with_scope(:create => @scope[:create].merge(scoped.where_values_hash)) do
build_record(attrs, &block)
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册