ember-auth-module-ember_model-source 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dist/ember-auth-module-ember-model.js +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e291788cfd12d0803e3d2fb1e5da45790eb131d7
|
4
|
+
data.tar.gz: af087519bd06611b774ec766c809c86193e72dba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a6cd77f13e477f59bafadb6880ea2ac7c51f58e042ab4ecc6a9b8a19c78d09e06cff2f79166810176fd80a54512b46b4285fb9fc5ace4307467ec24f27108a7
|
7
|
+
data.tar.gz: 9e6dd58a3c7682f06d209708637e7cf48a639938456a70b80c50c12cac847e6f6eefca2fdcdd9dc22a4be758dcfc4f54f5a506d7568f06115d0346bb5c8fd144
|
@@ -21,13 +21,15 @@ var get$ = Ember.get;
|
|
21
21
|
var set$ = Ember.set;
|
22
22
|
set$(get$(Em, 'Auth'), 'EmberModelAuthModule', Ember.Object.extend({
|
23
23
|
init: function () {
|
24
|
-
|
24
|
+
get$(this, 'auth')._config('emberModel', get$(this, '_defaultConfig'));
|
25
|
+
null != get$(this, 'config') || set$(this, 'config', get$(this, 'auth')._config('emberModel'));
|
25
26
|
this.patch();
|
26
27
|
get$(this, 'auth').reopen({ user: get$(Em, 'computed').alias('module.emberModel.user') });
|
27
28
|
get$(this, 'auth').addHandler('signInSuccess', get$(this, 'findUser').bind(this));
|
28
29
|
get$(this, 'auth').addHandler('signInError', get$(this, 'clearUser').bind(this));
|
29
30
|
return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'clearUser').bind(this));
|
30
31
|
},
|
32
|
+
_defaultConfig: { userModel: false },
|
31
33
|
user: null,
|
32
34
|
findUser: function () {
|
33
35
|
var model, this$;
|
@@ -49,6 +51,4 @@ set$(get$(Em, 'Auth'), 'EmberModelAuthModule', Ember.Object.extend({
|
|
49
51
|
}
|
50
52
|
});
|
51
53
|
}
|
52
|
-
}))
|
53
|
-
var get$ = Ember.get;
|
54
|
-
get$(Em, 'Auth').reopen({ emberModel: { userModel: false } });
|
54
|
+
}));
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ember-auth-module-ember_model-source
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- heartsentwined
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ember-source
|