Class: Spotlight::Attachment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Spotlight::Attachment
- 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( = nil) file.as_json().merge(name: name, uid: uid, id: id, class: self.class.to_s) end |