Spaces:
Sleeping
Sleeping
File size: 378 Bytes
397e650 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | class ImageAnalysis < ApplicationRecord
belongs_to :blob, class_name: "ActiveStorage::Blob"
serialize :ai_detected_features, coder: JSON
# Ransack configuration for Active Admin
def self.ransackable_attributes(auth_object = nil)
[ "id", "blob_id", "created_at", "updated_at" ]
end
def self.ransackable_associations(auth_object = nil)
[ "blob" ]
end
end
|