notebook/app/services/autocomplete/magic_autocomplete_service.rb
2020-04-06 15:33:46 -05:00

12 lines
274 B
Ruby

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