mirror of
https://github.com/czhu12/canine.git
synced 2026-01-06 11:40:44 -06:00
34 lines
788 B
Ruby
34 lines
788 B
Ruby
class ActiveStorage::BlobResource < Madmin::Resource
|
|
# Attributes
|
|
attribute :id, form: false
|
|
attribute :key
|
|
attribute :filename
|
|
attribute :content_type
|
|
attribute :byte_size
|
|
attribute :checksum
|
|
attribute :created_at, form: false
|
|
attribute :service_name
|
|
attribute :analyzed
|
|
attribute :identified
|
|
attribute :composed
|
|
attribute :preview_image, index: false
|
|
|
|
# Associations
|
|
attribute :attachments
|
|
attribute :variant_records
|
|
|
|
# Uncomment this to customize the display name of records in the admin area.
|
|
# def self.display_name(record)
|
|
# record.name
|
|
# end
|
|
|
|
# Uncomment this to customize the default sort column and direction.
|
|
# def self.default_sort_column
|
|
# "created_at"
|
|
# end
|
|
#
|
|
# def self.default_sort_direction
|
|
# "desc"
|
|
# end
|
|
end
|