Skip to content
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 bc59896 commit dedb2f3884b1398d749e541cf7f598049195e3fe
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 dedb2f3

Please sign in to comment.
You can’t perform that action at this time.