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



8
9
10
# File 'app/models/spotlight/attachment.rb', line 8

def as_json(options = nil)
  file.as_json(options).merge(name: name, uid: uid, id: id, class: self.class.to_s)
end