lib/tasks/index.rake in picky-2.5.2 vs lib/tasks/index.rake in picky-2.6.0

- old
+ new

@@ -21,11 +21,12 @@ end desc "Generates a specific index from index snapshots (category optional)." task :specific, [:index, :category] => :application do |_, options| index, category = options.index, options.category - specific_index = Indexes.find index.to_sym, (category && category.to_sym) - specific_index.index! - specific_index.cache! + + specific = Indexes[index] + specific = specific[category] if category + specific.index end end \ No newline at end of file