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
10 11 12 |
# File 'app/models/spotlight/attachment.rb', line 10 def as_json( = nil) file.as_json().merge(name:, uid:, attachment: to_global_id) end |