Skip to content

Commit

Permalink
Merge pull request #30 from kurko/fixing_jj_abrams_lens_glare
Browse files Browse the repository at this point in the history
Fixing tests for Ember Data 1.0.0-beta.5
  • Loading branch information
kurko committed Feb 13, 2014
2 parents 55ad3d7 + 04619da commit bd9611c
Show file tree
Hide file tree
Showing 11 changed files with 46,050 additions and 29,861 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
language: node_js
script: "phantomjs test/phantomjs-index.js"
script: "phantomjs test/runner.js test/index.html"
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ Ember Data Local Storage Adapter

Store your ember application data in localStorage.

Compatible with Ember Data 1.0alpha+.
Compatible with Ember Data 1.0.beta.5.

**NOTE**: New versions of the `localStorage` adapter are no longer compatible
with older versions of Ember Data. For older versions, checkout the `legacy`
with older versions of Ember Data. For older versions, checkout the `pre-beta`
branch.

Usage
Expand All @@ -32,7 +32,12 @@ DS.LSAdapter.create({
});
```

### Model "url"
### Models

Whenever the adapter returns a record, it'll also return all
relationships, so __do not__ use `{async: true}` in you model definitions.

#### Namespace

If your model definition has a `url` property, the adapter will store the data on that namespace. URL is a weird term in this context, but it makes swapping out adapters simpler by not requiring additional properties on your models.

Expand Down Expand Up @@ -60,14 +65,15 @@ App.store.commit();
Todo
----

- Figure out how to save a record once its transitioned to the error state.
- Make the repo nicer to work with long-term (do something more intelligent with dependencies found in `vendor`, etc.)
- Add some examples

Tests
-----

Open `tests/index.html` in a browser.
Open `tests/index.html` in a browser. If you have `phantomjs` installed,
run

phantomjs test/runner.js test/index.html

License & Copyright
-------------------
Expand Down
Loading

0 comments on commit bd9611c

Please sign in to comment.