Sha256: fe4502de19476e6267047b78cb18b369070c35f5b9f4ce3cd07fe670773204d5
Contents?: true
Size: 292 Bytes
Versions: 2
Compression:
Stored size: 292 Bytes
Contents
namespace :loft do desc "Recreate Loft asset versions" task :recreate_versions => :environment do ::Asset.all.to_a.each do |a| begin a.file.recreate_versions! rescue Errno::ENOENT puts "Skip #{a._number}: source file not found" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
loft-0.4.1 | lib/tasks/recreate_versions.rake |
loft-0.4.0 | lib/tasks/recreate_versions.rake |