Module: CouchPotato::Attachments::ClassMethods

Defined in:
lib/couch_potato/persistence/attachments.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) json_create(json)



24
25
26
27
28
# File 'lib/couch_potato/persistence/attachments.rb', line 24

def json_create(json)
  instance = super
  instance._attachments = json['_attachments'] if json
  instance
end