Add rake task to reprocess sponsor logos

rake logo:reprocess
This commit is contained in:
Aditya Prakash 2016-04-25 17:18:02 +05:30
parent d662ebd252
commit d47e9c317d
3 changed files with 8 additions and 3 deletions

View file

6
lib/tasks/logo.rake Normal file
View file

@ -0,0 +1,6 @@
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! }
end
end