Class: ThinkingSphinx::Configuration::MinimumFields

Inherits:
Object
  • Object
show all
Defined in:
lib/thinking_sphinx/configuration/minimum_fields.rb

Instance Method Summary collapse

Constructor Details

#initialize(indices) ⇒ MinimumFields

Returns a new instance of MinimumFields.



4
5
6
# File 'lib/thinking_sphinx/configuration/minimum_fields.rb', line 4

def initialize(indices)
  @indices = indices
end

Instance Method Details

#reconcileObject



8
9
10
11
12
13
14
# File 'lib/thinking_sphinx/configuration/minimum_fields.rb', line 8

def reconcile
  field_collections.each do |collection|
    collection.fields.delete_if do |field|
      field.name == 'sphinx_internal_class_name'
    end
  end
end