Keep scope conditions for associations
If an association defines a scope with arity != 0 then the scope is not evaluated when preloading that relation. This fixes it. Changelog: fixed
显示
- gems/activerecord-gitlab/lib/active_record/gitlab_patches/partitioning/reflection/macro_reflection.rb 26 个添加, 1 个删除...itlab_patches/partitioning/reflection/macro_reflection.rb
- gems/activerecord-gitlab/spec/active_record/gitlab_patches/partitioning/joins_spec.rb 6 个添加, 3 个删除...c/active_record/gitlab_patches/partitioning/joins_spec.rb
- gems/activerecord-gitlab/spec/active_record/gitlab_patches/partitioning/preloads_spec.rb 74 个添加, 2 个删除...ctive_record/gitlab_patches/partitioning/preloads_spec.rb
- gems/activerecord-gitlab/spec/support/models.rb 13 个添加, 0 个删除gems/activerecord-gitlab/spec/support/models.rb
想要评论请 注册 或 登录