lib/tasks/lalala_tasks.rake in lalala-4.0.0.dev.94 vs lib/tasks/lalala_tasks.rake in lalala-4.0.0.dev.107
- old
+ new
@@ -1,4 +1,12 @@
-# desc "Explaining what the task does"
-# task :lalala do
-# # Task goes here
-# end
+namespace :lalala do
+
+ namespace :assets do
+ desc "Reprocess assets"
+ task :reprocess => :environment do
+ ImageAsset.all.each do |image|
+ image.asset.recreate_versions! if image.asset
+ end
+ end
+ end
+
+end