Class: Sunspot::IdField
- Inherits:
-
Object
- Object
- Sunspot::IdField
- Defined in:
- lib/sunspot/field.rb
Overview
:nodoc:
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.instance ⇒ Object
179 180 181 |
# File 'lib/sunspot/field.rb', line 179 def instance @instance ||= new end |
Instance Method Details
#indexed_name ⇒ Object
184 185 186 |
# File 'lib/sunspot/field.rb', line 184 def indexed_name 'id' end |
#to_indexed(id) ⇒ Object
188 189 190 |
# File 'lib/sunspot/field.rb', line 188 def to_indexed(id) id.to_s end |