mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:34:31 +08:00
FIX: automatically growing uploads tree
This commit is contained in:
@ -3,6 +3,9 @@ require "digest/sha1"
|
||||
class OptimizedImage < ActiveRecord::Base
|
||||
belongs_to :upload
|
||||
|
||||
# BUMP UP if optimized image algorithm changes
|
||||
VERSION = 1
|
||||
|
||||
def self.create_for(upload, width, height, opts={})
|
||||
return unless width > 0 && height > 0
|
||||
|
||||
|
Reference in New Issue
Block a user