#
# Autocompleter that searches the given scopes and excludes optional ids
#
# you need these scopes in all searchable models
# to split the string of excluded ids
ID_DELIMITER = ','
# clazz => excluded_ids
@scopes = {}
end
# adds a scope to the autocompleter
end
# search the added scopes
result = []
# exclude the given ids
# finally apply the search scope
end
end
end