Skip to content

Commit

Permalink
.scoped is deprecated in favor of .all
Browse files Browse the repository at this point in the history
  • Loading branch information
tjchambers committed Nov 8, 2018
1 parent 16b092f commit a67e2fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grouped_scope/self_grouping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a67e2fd

Please sign in to comment.