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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3467e763dfe602cb8767bb66e2d8de102dfaed5d
4
- data.tar.gz: 0651e97fd3d270e1706ff048b6c24e42d598609a
3
+ metadata.gz: e291788cfd12d0803e3d2fb1e5da45790eb131d7
4
+ data.tar.gz: af087519bd06611b774ec766c809c86193e72dba
5
5
  SHA512:
6
- metadata.gz: c4dc63d6c32deb4dd76a423447d437a8ea809353ff4c376d84d1b6a1a441de09d276e123d016b949c17c47d16848172ac1bb86634a1f58a2e94f80242097ec55
7
- data.tar.gz: 2f3b986b4fa980f8b640569b85f155282467fac65a8c02946f1c8094e60156a4bdea29a5a30e670671d2c278210506eb2a9d959d1f93865d535b92726bdf7671
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
- null != get$(this, 'config') || set$(this, 'config', get$(get$(this, 'auth'), 'emberModel'));
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
- }));// Generated by EmberScript 0.0.7
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.1
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-10 00:00:00.000000000 Z
11
+ date: 2013-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ember-source