Module: CouchPotato::Extensions::Attachments
- Defined in:
- lib/couch_potato/extensions/attachments.rb
Instance Method Summary collapse
Instance Method Details
#attachment(name) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/couch_potato/extensions/attachments.rb', line 4 def (name) if not new? begin CouchPotato.database.send(:database).(id, name) rescue RestClient::ResourceNotFound end end end |