module Hypostasis::Shared::Indexes::ClassMethods

Public Instance Methods

index(field_name, options = {}) click to toggle source
# 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