Get objects to reindex from Models.searchable.

This commit is contained in:
Martin Edenhofer 2015-08-16 11:30:31 +02:00
parent ecb0ace02d
commit eb84b39c32

View file

@ -42,9 +42,10 @@ namespace :searchindex do
task :reload, [:opts] => :environment do |_t, _args|
puts 'reload data...'
User.search_index_reload
Organization.search_index_reload
Ticket.search_index_reload
Models.searchable.each {|model_class|
puts " reload #{model_class}"
model_class.search_index_reload
}
end