lib/picky/indexes_indexed.rb in picky-3.5.4 vs lib/picky/indexes_indexed.rb in picky-3.6.0

- old
+ new

@@ -2,20 +2,21 @@ # Registers the indexes held at runtime, for queries. # class Indexes - instance_delegate :load_from_cache, - :reload, + instance_delegate :load, :analyze - each_delegate :load_from_cache, + each_delegate :load, + :reload, :to => :indexes - # Reloads all indexes, one after another, - # in the order they were added. + # TODO Remove in 4.0. # - alias reload load_from_cache + def self.reload + self.instance.reload + end end end \ No newline at end of file