Class: Sunspot::DSL::Fields
- Inherits:
-
Object
- Object
- Sunspot::DSL::Fields
- Defined in:
- lib/lunr/sunspot.rb
Instance Method Summary collapse
Instance Method Details
#property(name, type, options = {}) ⇒ Object
6 7 8 9 |
# File 'lib/lunr/sunspot.rb', line 6 def property name, type, = {} @setup.clazz.properties[name] = type send type, name, .merge(:stored => true) end |