mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
12 lines
274 B
Ruby
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 |