mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 18:23:37 +08:00
15 lines
358 B
Ruby
15 lines
358 B
Ruby
class UploadSerializer < ApplicationSerializer
|
|
attributes :id,
|
|
:url,
|
|
:original_filename,
|
|
:filesize,
|
|
:width,
|
|
:height,
|
|
:thumbnail_width,
|
|
:thumbnail_height,
|
|
:extension,
|
|
:short_url,
|
|
:retain_hours,
|
|
:human_filesize
|
|
end
|