Orbit/lib/tasks/index.rake

11 lines
212 B
Ruby
Raw Normal View History

2012-09-24 10:46:38 +00:00
# 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