Sha256: 10ceac835d0cca158c7144c8814acb6b69170fdd4b4444ba6462f9b69552502f
Contents?: true
Size: 611 Bytes
Versions: 1
Compression:
Stored size: 611 Bytes
Contents
desc 'Reindex Calagator models with Sunspot' task 'sunspot:reindex:calagator' do # Silence warnings about already-initialized constants caused by # sunspot-rails' aggressive eager loading of all engine files. original_verbosity = $VERBOSE $VERBOSE = nil puts 'Reindexing Venues…' Rake.application['sunspot:solr:reindex'].invoke(500, 'Calagator::Venue') Rake.application['sunspot:solr:reindex'].reenable Rake.application['sunspot:reindex'].reenable puts 'Reindexing Events…' Rake.application['sunspot:solr:reindex'].invoke(500, 'Calagator::Event') $VERBOSE = original_verbosity end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
calagator-1.1.0 | lib/tasks/sunspot_reindex_calagator.rake |