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



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

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