lib/sunspot/dsl/fields.rb in sunspot-0.10.6 vs lib/sunspot/dsl/fields.rb in sunspot-0.10.7

- old
+ new

@@ -32,10 +32,10 @@ # search. Can be overriden with DSL::Fulltext#fields or # DSL::Fulltext#boost_fields method. # def text(*names, &block) options = names.pop if names.last.is_a?(Hash) - for name in names + names.each do |name| @setup.add_text_field_factory( name, options || {}, &block )