Module: Hypostasis::Shared::Indexes::ClassMethods

Defined in:
lib/hypostasis/shared/indexes.rb

Instance Method Summary collapse

Instance Method Details

#index(field_name, options = {}) ⇒ Object



18
19
20
21
22
# File 'lib/hypostasis/shared/indexes.rb', line 18

def index(field_name, options = {})
  registered_indexed_fields = indexed_fields
  registered_indexed_fields << field_name.to_sym
  indexed_fields = registered_indexed_fields
end