Permalink
Browse files

Add attributes to model

Outer green

We add title and body attributes to our model, and now both the title and body are shown on the get page. Our last bug is squashed!
  • Loading branch information...
CodingItWrong committed Jan 11, 2018
1 parent b277587 commit 354d07d13c7c06da563340e9ddf478e7278ccfb2
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/models/post.js
@@ -1,5 +1,6 @@
import DS from 'ember-data';

export default DS.Model.extend({

title: DS.attr(),
body: DS.attr(),
});

0 comments on commit 354d07d

Please sign in to comment.