ember-auth-module-rememberable-source 1.0.2 → 1.0.3
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-rememberable.js +4 -10
- 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: 720eaf871f4b320f4241a2e5a858f69996c14c0c
|
4
|
+
data.tar.gz: d0275bbdfa9b89eee8efb5a087a969cbed6cb8d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a53f95f9c016597fa45a4b09349b1899215a5324c53a3c7c6d1131754350f75e8568424036cd98e88625e926132dcef8de0483d9e1899242ca1e1d7032a7b733
|
7
|
+
data.tar.gz: 026560bce2126e097dd28f168120984d2728f0fa6f9f0373855e66558e8dd22fca801a2e185a04fa43a009a3ed46cc5272e836c034727a715b00f9cacae78b7d
|
@@ -78,17 +78,11 @@ set$(get$(Em, 'Auth'), 'RememberableAuthModule', Ember.Object.extend({
|
|
78
78
|
self = this;
|
79
79
|
return get$(Em, 'Route').reopen({
|
80
80
|
beforeModel: function () {
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
return ret;
|
85
|
-
if (typeof get$(ret, 'then') === 'function') {
|
86
|
-
return ret.then(function () {
|
87
|
-
return self.recall();
|
88
|
-
});
|
89
|
-
} else {
|
81
|
+
return get$(self, 'auth')._ensurePromise(this._super.apply(this, arguments)).then(function () {
|
82
|
+
if (!(get$(get$(self, 'config'), 'autoRecall') && !get$(get$(self, 'auth'), 'signedIn')))
|
83
|
+
return;
|
90
84
|
return self.recall();
|
91
|
-
}
|
85
|
+
});
|
92
86
|
}
|
93
87
|
});
|
94
88
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ember-auth-module-rememberable-source
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
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-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ember-source
|