Sha256: 91db2616efc5da14fc9b0c5eda04cc11d53cbe5882bf0022c58d77e4a0b98ffd
Contents?: true
Size: 541 Bytes
Versions: 2
Compression:
Stored size: 541 Bytes
Contents
namespace :pose do desc "Deletes and recreates the search index for all instances of the given class." task :reindex_all, [:class_name] => :environment do clazz = Kernel.const_get class_name clazz.find_each do |instance| instance.update_pose_words end end desc "Removes the search index for all instances of the given classes" task :remove_from_index, [:class_name] => :environment do clazz = Kernel.const_get class_name clazz.find_each do |instance| instance.delete_pose_words end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pose-0.0.3 | lib/tasks/pose_tasks.rake |
pose-0.0.2 | lib/tasks/pose_tasks.rake |