This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/lib/tasks/index.rake

11 lines
212 B
Ruby

# 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