lib/picky/configuration/field.rb in picky-0.9.4 vs lib/picky/configuration/field.rb in picky-0.10.0

- old
+ new

@@ -3,13 +3,13 @@ # Describes the configuration of a "field", a category # (title is a category of a books index, for example). # class Field attr_reader :name, :indexed_name, :virtual, :tokenizer - attr_accessor :type # convenience - def initialize name, tokenizer, options = {} + attr_accessor :type # convenience TODO Still needed? + def initialize name, options = {} @name = name.to_sym - @tokenizer = tokenizer + @tokenizer = options[:tokenizer] || Tokenizers::Index.default # TODO Dup the options? @source = options.delete :source \ No newline at end of file