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