lib/picky/indexes_indexed.rb in picky-2.6.0 vs lib/picky/indexes_indexed.rb in picky-2.7.0
- old
+ new
@@ -1,29 +1,17 @@
# Registers the indexes held at runtime, for queries.
#
class Indexes
-
+
instance_delegate :load_from_cache,
:reload,
:analyze
-
+
each_delegate :load_from_cache,
:to => :indexes
-
+
# Reloads all indexes, one after another,
# in the order they were added.
#
alias reload load_from_cache
-
- # Load each index, and analyze it.
- #
- # Returns a hash with the findings.
- #
- def analyze
- result = {}
- indexes.each do |index|
- index.analyze result
- end
- result
- end
end
\ No newline at end of file