Class: Spotlight::Attachment

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

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object



6
7
8
# File 'app/models/spotlight/attachment.rb', line 6

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