Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Small updates for simple-auth >1.0 and latest version(s) of ember #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

derrickshowers
Copy link

Using this library for a project and noticed several issues when upgrading the Ember 2.0 and Simple Auth 1.0 (which is a necessary upgrade to use Ember 2.0). Tried to make the changes so that they do not break for those still on Ember versions lower than 2.0. This change will require a bump to Simple Auth, though, due to a change they made to their file paths (simple-auth -> ember-simple-auth). However, developers can upgrade to the latest version of Simple Auth without being required to upgrade Ember.

Derrick Showers added 4 commits December 20, 2015 18:32
The latest version of simple auth (that supports Ember 2.0) changed its
path. Instead of 'simple-auth,' it's now 'ember-simple-auth'. See
documentation here:

mainmatter/ember-simple-auth#602
In newer versions of ember, the store object is stored as a service.
Therefore, calling `store:main` in `container.lookup` will return
undefined. Fixed by using `service:store`, but kept `store:main` for
backwards compatibility.
* `store.serializerFor` no longer accepts a class (or model) as an
argument. Instead, it should be the model name
* Initializer no longer passes 'container' to the callback, so removed
the param
* `secure.userData` is now inside of a `data` object in the latest
release of simple auth
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant