/ Published in: Ruby
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# Given Asset has_attached_file Asset.find(:all).each { |a| a.asset.reprocess!; a.save }