From a67e2fdc6986ee93c38dc5f120340a828d1051ef Mon Sep 17 00:00:00 2001 From: Tim Chambers Date: Thu, 8 Nov 2018 15:42:42 -0800 Subject: [PATCH] .scoped is deprecated in favor of .all --- lib/grouped_scope/self_grouping.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/grouped_scope/self_grouping.rb b/lib/grouped_scope/self_grouping.rb index b962da5..4fa4251 100644 --- a/lib/grouped_scope/self_grouping.rb +++ b/lib/grouped_scope/self_grouping.rb @@ -76,7 +76,7 @@ def all_grouped? end def grouped_scoped - return proxy_class.scoped if all_grouped? + return proxy_class.all if all_grouped? proxy_class.where present? ? arel_group_id.eq(proxy_owner.group_id) : arel_primary_key.eq(proxy_owner.id) end