lib/picky/bundle.rb in picky-4.0.0pre5 vs lib/picky/bundle.rb in picky-4.0.0pre6

- old
+ new

@@ -89,26 +89,21 @@ # # Note that if the weights strategy doesn't need to be saved, # the strategy itself pretends to be an index. # def initialize_backends - # @inverted, @weights, @similarity, @configuration, @realtime = backend.initial weight_strategy @inverted = @backend_inverted.initial - # TODO @weights = @weight_strategy.initial || @backend_weights.initial - # - @weights = @weight_strategy.saved?? @backend_weights.initial : @weight_strategy + @weights = @weight_strategy.saved? ? @backend_weights.initial : @weight_strategy @similarity = @backend_similarity.initial @configuration = @backend_configuration.initial @realtime = @backend_realtime.initial end # "Empties" the index(es) by getting a new empty # internal backend instance. # def empty @inverted = @backend_inverted.empty - # THINK about this. Perhaps the strategies should implement the backend methods? - # @weights = @weight_strategy.saved? ? @backend_weights.empty : @weight_strategy @similarity = @backend_similarity.empty @configuration = @backend_configuration.empty @realtime = @backend_realtime.empty end \ No newline at end of file