A MediaAsset represents an image or video file uploaded to Danbooru. It stores the metadata associated with the image or video. This is to work on decoupling files from posts so that images can be uploaded separately from posts.
8 lines
240 B
Ruby
8 lines
240 B
Ruby
class MediaAsset < ApplicationRecord
|
|
def self.search(params)
|
|
q = search_attributes(params, :id, :created_at, :updated_at, :md5, :file_ext, :file_size, :image_width, :image_height)
|
|
q = q.apply_default_order(params)
|
|
q
|
|
end
|
|
end
|