mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-16 13:14:03 +00:00
Merge pull request #1007 from hennevogel/master
Adapt the logo data migration task to carrierwave
This commit is contained in:
commit
139df75ab6
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