Files
canine/app/madmin/resources/active_storage/blob_resource.rb
Celina Lopez e59ed8250a jumpstart
2024-09-25 14:18:54 -07:00

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