mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 12:11:16 -05:00
7 lines
160 B
Ruby
7 lines
160 B
Ruby
class OptimizedImage < ActiveRecord::Base
|
|
belongs_to :upload
|
|
|
|
def filename
|
|
"#{sha[0..2]}/#{sha[3..5]}/#{sha[6..16]}_#{width}x#{height}#{ext}"
|
|
end
|
|
end
|