Sha256: 84ae9f0a1904f9eebf120fa4672553c03b0c46c35fdf30b09552ed6c795f4fd4

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

# encoding: utf-8

namespace :locomotive do

  namespace :search do

    desc 'Re-index all the searchable pages and entries'
    task reindex: :environment do
      Locomotive::ContentEntry.all.each_by(100) do |entry|
        entry.send(:reindex)
      end

      Locomotive::Page.all.each_by(100) do |page|
        page.send(:reindex)
      end
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
locomotivecms-search-0.3.6 lib/tasks/search.rake