lib/tasks/index.rake in picky-2.7.0 vs lib/tasks/index.rake in picky-3.0.0.pre1
- old
+ new
@@ -2,11 +2,11 @@
#
desc "Generate the index (index, category optional)."
task :index, [:index, :category] => :application do |_, options|
index, category = options.index, options.category
- specific = Indexes
+ specific = Picky::Indexes
specific = specific[index] if index
specific = specific[category] if category
specific.index
end
@@ -14,13 +14,13 @@
# Advanced usage.
#
# desc "Takes a snapshot, indexes, and caches in random order."
task :randomly => :application do
- Indexes.index true
+ Picky::Indexes.index true
end
# desc "Takes a snapshot, indexes, and caches in order given."
task :ordered => :application do
- Indexes.index false
+ Picky::Indexes.index false
end
end
\ No newline at end of file