lib/picky/bundle.rb in picky-3.1.0 vs lib/picky/bundle.rb in picky-3.1.1

- old
+ new

@@ -82,11 +82,14 @@ # * inverted index # * weights index # * partial index # * similarity index # - def index_path type - ::File.join index_directory, "#{category.name}_#{name}_#{type}" + # Returns just the part without subindex type, + # if none given. + # + def index_path type = nil + ::File.join index_directory, "#{category.name}_#{name}#{ "_#{type}" if type }" end # Copies the indexes to the "backup" directory. # def backup \ No newline at end of file