mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Adapt the logo data migration task to carrierwave
This commit is contained in:
parent
02487be6fb
commit
6575bc10db
1 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue