ember-data
Advanced tools
Comparing version 1.13.6 to 1.13.7
{ | ||
"name": "ember-data", | ||
"version": "1.13.6", | ||
"version": "1.13.7", | ||
"namespace": "DS", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/emberjs/data.git", |
@@ -64,3 +64,3 @@ ## Ember Data [![Build Status](https://secure.travis-ci.org/emberjs/data.svg?branch=master)](http://travis-ci.org/emberjs/data) | ||
export default DS.Model.extend({ | ||
title: DS.attr(), | ||
title: DS.attr('string'), | ||
createdAt: DS.attr('date'), | ||
@@ -75,6 +75,6 @@ | ||
export default DS.Model.extend({ | ||
body: DS.attr(), | ||
username: DS.attr(), | ||
body: DS.attr('string'), | ||
username: DS.attr('string'), | ||
post: DS.belongsTo('blogPost') | ||
post: DS.belongsTo('blog-post') | ||
}); | ||
@@ -92,3 +92,3 @@ ``` | ||
App.BlogPost = DS.Model.extend({ | ||
title: attr(), | ||
title: attr('string'), | ||
createdAt: attr('date'), | ||
@@ -100,6 +100,6 @@ | ||
App.Comment = DS.Model.extend({ | ||
body: attr(), | ||
username: attr(), | ||
body: attr('string'), | ||
username: attr('string'), | ||
post: belongsTo('blogPost') | ||
post: belongsTo('blog-post') | ||
}); | ||
@@ -133,3 +133,3 @@ ``` | ||
```js | ||
this.store.findAll('blogPost'); | ||
this.store.findAll('blog-post'); | ||
``` | ||
@@ -142,3 +142,3 @@ | ||
```js | ||
this.store.find('blogPost', 123); | ||
this.store.findRecord('blog-post', 123); | ||
``` | ||
@@ -145,0 +145,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77191
84055
6
10
110