提交 db924e12 编写于 作者: R Rafael Mendonça França

Merge pull request #10049 from vipulnsward/optimize_around_merge_v1

optimize some code around merge
......@@ -14,7 +14,7 @@ module ThroughAssociation #:nodoc:
def target_scope
scope = super
chain[1..-1].each do |reflection|
scope = scope.merge(
scope.merge!(
reflection.klass.all.with_default_scope.
except(:select, :create_with, :includes, :preload, :joins, :eager_load)
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册