def get_leftover_domains(db_domains)
# Given a list of domains, determine which domains belonging to
# this plugin are not contained in the given list.
- raise NotImplementedError
+
+ # WARNING! Array difference doesn't work for some reason.
+ return list_domains().select{ |d| !db_domains.include?(d) }
end
def get_leftover_users(db_users)
# Given a list of users, determine which users belonging to
# this plugin are not contained in the given list.
- raise NotImplementedError
+
+ # WARNING! Array difference doesn't work for some reason.
+ return list_users().select{ |u| !db_users.include?(u) }
end
end