lib/tasks/kinney_tasks.rake in kinney-0.0.3 vs lib/tasks/kinney_tasks.rake in kinney-0.1.0
- old
+ new
@@ -1,10 +1,10 @@
namespace :kinney do
desc 'reindex models in elasticsearch'
task :reindex => :environment do
['Clip', 'Person'].each do |klass|
ENV['CLASS'] = 'Kinney::' + klass
- Rake::Task['tire:import'].execute
+ Rake::Task['tire:import:model'].execute
end
end
desc 'create friendly_ids for models'
task :friendly_id => :environment do