Class: Sunspot::DSL::Fields

Inherits:
Object
  • Object
show all
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, options = {}
  @setup.clazz.properties[name] = type
  send type, name, options.merge(:stored => true)
end