mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 04:53:51 +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
|