lib/picky/indexes.rb in picky-2.6.0 vs lib/picky/indexes.rb in picky-2.7.0
- old
+ new
@@ -12,14 +12,15 @@
delegate :size,
:each,
:to => :indexes
each_delegate :reindex,
+ :each_category,
:to => :indexes
def initialize
- clear
+ clear_indexes
end
# Return the Indexes instance.
#
def self.instance
@@ -30,14 +31,15 @@
:register,
:reindex,
:[],
:to_s,
:size,
- :each
+ :each,
+ :each_category
# Clears the indexes and the mapping.
#
- def clear
+ def clear_indexes
@indexes = []
@index_mapping = {}
end
# Registers an index with the indexes.
\ No newline at end of file