app/models/caboose/media.rb in caboose-cms-0.5.230 vs app/models/caboose/media.rb in caboose-cms-0.5.231
- old
+ new
@@ -94,7 +94,11 @@
def file_url
return self.image.url(:original) if self.image && !self.image.url(:original).starts_with?('http://placehold.it')
return self.file.url
end
+
+ def reprocess_image
+ self.image.reprocess!
+ end
end