Sha256: dbef399b64b717f2235d9af306ded211a692009dbb0dce9cb562c31092dbd1d6
Contents?: true
Size: 345 Bytes
Versions: 39
Compression:
Stored size: 345 Bytes
Contents
# frozen_string_literal: true module Spotlight ## # Sir-trevor image upload attachments class Attachment < ActiveRecord::Base belongs_to :exhibit mount_uploader :file, Spotlight::AttachmentUploader def as_json(options = nil) file.as_json(options).merge(name: name, uid: uid, attachment: to_global_id) end end end
Version data entries
39 entries across 39 versions & 1 rubygems