Class: ThinkingSphinx::Configuration::MinimumFields
- Inherits:
-
Object
- Object
- ThinkingSphinx::Configuration::MinimumFields
- Defined in:
- lib/thinking_sphinx/configuration/minimum_fields.rb
Instance Method Summary collapse
-
#initialize(indices) ⇒ MinimumFields
constructor
A new instance of MinimumFields.
- #reconcile ⇒ Object
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
#reconcile ⇒ Object
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 |