lib/picky/bundle_indexing.rb in picky-4.0.0 vs lib/picky/bundle_indexing.rb in picky-4.0.1

- old
+ new

@@ -32,11 +32,11 @@ # def dump @backend_inverted.dump @inverted # THINK about this. Perhaps the strategies should implement the backend methods? Or only the internal index ones? # - @backend_weights.dump @weights if @weight_strategy.saved? - @backend_similarity.dump @similarity if @similarity_strategy.saved? + @backend_weights.dump @weights if @weight_strategy.respond_to?(:saved?) && @weight_strategy.saved? + @backend_similarity.dump @similarity if @similarity_strategy.respond_to?(:saved?) && @similarity_strategy.saved? @backend_configuration.dump @configuration @backend_realtime.dump @realtime end end \ No newline at end of file