lib/tasks/index.rake in picky-2.5.0 vs lib/tasks/index.rake in picky-2.5.1
- old
+ new
@@ -21,10 +21,11 @@
end
desc "Generates a specific index from index snapshots (category optional)."
task :specific, [:index, :category] => :application do |_, options|
index, category = options.index, options.category
- Indexes.generate_index_only index.to_sym, category && category.to_sym
- Indexes.generate_cache_only index.to_sym, category && category.to_sym
+ specific_index = Indexes.find index.to_sym, (category && category.to_sym)
+ specific_index.index!
+ specific_index.cache!
end
end
\ No newline at end of file