hummingbird-me/hummingbird

View on GitHub
frontend/app/models/version.js

Summary

Maintainability
A
0 mins
Test Coverage
import DS from 'ember-data';

export default DS.Model.extend({
  user: DS.belongsTo('user'),
  anime: DS.belongsTo('full-anime'),
  manga: DS.belongsTo('full-manga'),

  objectType: DS.attr('string'),
  object: DS.attr(),
  objectChanges: DS.attr(),
  state: DS.attr('string'),
  comment: DS.attr('string'),
  createdAt: DS.attr('date'),

  item: function() {
    return this.get(this.get('objectType'));
  }.property('objectType')
});