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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da80ad1de78c42c6ce8a067c713ca063c847bff4
4
- data.tar.gz: c5203e1462f31bd9cd7654199fdc72920ac25cbb
3
+ metadata.gz: 720eaf871f4b320f4241a2e5a858f69996c14c0c
4
+ data.tar.gz: d0275bbdfa9b89eee8efb5a087a969cbed6cb8d6
5
5
  SHA512:
6
- metadata.gz: 7eaf8cbfbbd87e8e936f302648107d1c7c0c8c59223a59db597e56c93241c8477dff99fbc5ed2d474e89d5172c5fa1434d635016c6e0893bb9c123050a62cb54
7
- data.tar.gz: 9c8cc40ccb76350d67c08c8e072566be6cc614ffe8d126f69f8a34928ac61056c84d9da56b2aabb39e51b0451302653507f03fad3f760d49f1ff9e9693ece657
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
- var ret;
82
- ret = this._super.apply(this, arguments);
83
- if (!(get$(get$(self, 'config'), 'autoRecall') && !get$(get$(self, 'auth'), 'signedIn')))
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.2
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 00:00:00.000000000 Z
11
+ date: 2013-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ember-source