import DS from 'ember-data';
import BaseModel from './base';

export default BaseModel.extend({
  title: DS.attr('rendered'),
  media_details: DS.attr(),
  source_url: DS.attr('string'),
  caption: DS.attr('rendered')
});

import DS from 'ember-data';
import BaseModel from './base';

export default BaseModel.extend({
  title: DS.attr('rendered'),
  media_details: DS.attr(),
  source_url: DS.attr('string'),
  caption: DS.attr('rendered'),
  description: DS.attr('rendered')
});

Add description for media HTML
Add description for media HTML

This allows getting the HTML for a given attachment image