Class: Sunspot::Type::AutocompleteType
- Inherits:
-
AbstractType
- Object
- AbstractType
- Sunspot::Type::AutocompleteType
- Defined in:
- lib/sunspot_autocomplete.rb
Overview
Auto Completion
Instance Method Summary collapse
-
#cast(string) ⇒ Object
:nodoc:.
-
#indexed_name(name) ⇒ Object
:nodoc:.
-
#to_indexed(value) ⇒ Object
:nodoc:.
Instance Method Details
#cast(string) ⇒ Object
:nodoc:
16 17 18 |
# File 'lib/sunspot_autocomplete.rb', line 16 def cast(string) #:nodoc: string end |
#indexed_name(name) ⇒ Object
:nodoc:
8 9 10 |
# File 'lib/sunspot_autocomplete.rb', line 8 def indexed_name(name) #:nodoc: "#{name}_ac" end |
#to_indexed(value) ⇒ Object
:nodoc:
12 13 14 |
# File 'lib/sunspot_autocomplete.rb', line 12 def to_indexed(value) #:nodoc: value.to_s if value end |