Sha256: 2b7fa29ad1d6928c060d52e50de7dd6c5f1800e03b8e3a9cfced1363f7d105fd

Contents?: true

Size: 320 Bytes

Versions: 84

Compression:

Stored size: 320 Bytes

Contents

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, id: id, class: self.class.to_s)
    end
  end
end

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
blacklight-spotlight-2.4.1 app/models/spotlight/attachment.rb
blacklight-spotlight-2.4.0 app/models/spotlight/attachment.rb
blacklight-spotlight-2.3.3 app/models/spotlight/attachment.rb
blacklight-spotlight-2.3.2 app/models/spotlight/attachment.rb
blacklight-spotlight-2.3.1 app/models/spotlight/attachment.rb
blacklight-spotlight-2.3.0 app/models/spotlight/attachment.rb
blacklight-spotlight-2.2.1 app/models/spotlight/attachment.rb
blacklight-spotlight-2.2.0 app/models/spotlight/attachment.rb
blacklight-spotlight-2.1.0 app/models/spotlight/attachment.rb
blacklight-spotlight-2.0.2 app/models/spotlight/attachment.rb
blacklight-spotlight-2.0.1 app/models/spotlight/attachment.rb
blacklight-spotlight-2.0.0 app/models/spotlight/attachment.rb
blacklight-spotlight-2.0.0.rc6 app/models/spotlight/attachment.rb
blacklight-spotlight-2.0.0.rc5 app/models/spotlight/attachment.rb
blacklight-spotlight-2.0.0.rc4 app/models/spotlight/attachment.rb
blacklight-spotlight-2.0.0.rc3 app/models/spotlight/attachment.rb
blacklight-spotlight-2.0.0.rc2 app/models/spotlight/attachment.rb
blacklight-spotlight-2.0.0.rc1 app/models/spotlight/attachment.rb
blacklight-spotlight-1.5.1 app/models/spotlight/attachment.rb
blacklight-spotlight-1.4.1 app/models/spotlight/attachment.rb