Sha256: 484a7971c12383a44f61af4152e461fce38a118352802f292f4d61e79074fd5f

Contents?: true

Size: 399 Bytes

Versions: 1

Compression:

Stored size: 399 Bytes

Contents

namespace :ferret do

  desc "Updates the Ferret index."
  task :rebuild_index => :environment do
    puts "Rebuilding Ferret index for EssenceText"
    Alchemy::EssenceText.where(:do_not_index => false).rebuild_index
    puts "Rebuilding Ferret index for EssenceRichtext"
    Alchemy::EssenceRichtext.where(:do_not_index => false).rebuild_index
    puts "Completed Ferret index rebuild"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alchemy_cms-2.5.0.rc3 lib/tasks/ferret.rake