Sha256: c4ecc7ba277bb662a5a866d8d2d6db7739fb81e6eb369bcaba9bc0d7acffdcfd
Contents?: true
Size: 448 Bytes
Versions: 3
Compression:
Stored size: 448 Bytes
Contents
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 end end desc 'create friendly_ids for models' task :friendly_id => :environment do [Kinney::Clip, Kinney::Person, Kinney::Topic].each do |klass| puts klass.to_s klass.find_each(&:save) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kinney-0.0.3 | lib/tasks/kinney_tasks.rake |
kinney-0.0.2 | lib/tasks/kinney_tasks.rake |
kinney-0.0.1 | lib/tasks/kinney_tasks.rake |