orbit-4-2/lib/tasks/index.rake

11 lines
212 B
Ruby
Raw Permalink Normal View History

# encoding: utf-8
namespace :index do
task :rebuild => :environment do
Sunspot.remove_all!
Sunspot.commit
Sunspot.index NewsBulletin.all
Sunspot.index Bulletin.all
Sunspot.commit
end
end