Fix unscoping `default_scope` in STI associations
Since 5c71000d, it has lost to be able to unscope `default_scope` in STI associations. This change will use `.empty_scope?` instead of `.values.empty?` to regard as an empty scope if only have `type_condition`.
Showing
想要评论请 注册 或 登录