Commit 49221845 authored by Alessio Caiazza's avatar Alessio Caiazza

DRY Users scopes for bots/humans

on EE we override internal/non_internal duplicating the logic we already
have in bots/humans scope.

This commit will reuse the same scopes removing such duplicated logic
parent 13a5d8a0
......@@ -125,12 +125,12 @@ module EE
override :internal
def internal
super.or(where.not(bot_type: nil))
super.or(bots)
end
override :non_internal
def non_internal
super.where(bot_type: nil)
super.humans
end
def non_ldap
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment