Method: Chimera::Indexes::ClassMethods#index

Defined in:
lib/chimera/indexes.rb

#index(name, type = :find) ⇒ Object

available types include:

find, unique, search, geo


17
18
19
20
# File 'lib/chimera/indexes.rb', line 17

def index(name, type = :find)
  @defined_indexes ||= {}
  @defined_indexes[name.to_sym] = type
end