notebook/app/services/autocomplete/school_autocomplete_service.rb
2020-04-06 16:03:49 -05:00

12 lines
277 B
Ruby

module Autocomplete
class SchoolAutocompleteService < AutocompleteService
def self.for_field_label(field_label)
case field_label.downcase
when 'type_of', 'type', 'type of school'
t('school_types')
else
[]
end.uniq
end
end
end