Class: Spotlight::Attachment

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/spotlight/attachment.rb

Overview

Sir-trevor image upload attachments

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object



10
11
12
# File 'app/models/spotlight/attachment.rb', line 10

def as_json(options = nil)
  file.as_json(options).merge(name: name, uid: uid, attachment: to_global_id)
end