Merge pull request #1007 from hennevogel/master

Adapt the logo data migration task to carrierwave
This commit is contained in:
Christian Bruckmayer 2016-05-20 15:23:22 +02:00
commit 139df75ab6

View file

@ -1,6 +1,8 @@
namespace :logo do
desc 'Resize existing logo of sponsors after change in image manipulation specifications'
task reprocess: :environment do
Sponsor.find_each { |s| s.logo.reprocess! }
namespace :data do
namespace :migrate do
desc 'Resize existing logo of sponsors after change in image manipulation specifications'
task logo_reprocess: :environment do
Sponsor.find_each { |s| s.picture.recreate_versions! if s.picture? }
end
end
end