ember-auth-rails 3.6.1 → 3.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -106,6 +106,11 @@
106
106
  }
107
107
  },
108
108
  ajax: function(url, type, hash) {
109
+ var token;
110
+ if (token = this.get('authToken')) {
111
+ hash.data || (hash.data = {});
112
+ hash.data[Auth.Config.get('tokenKey')] = this.get('authToken');
113
+ }
109
114
  hash.url = url;
110
115
  hash.type = type;
111
116
  hash.dataType = 'json';
@@ -175,11 +180,6 @@
175
180
 
176
181
  Auth.RESTAdapter = DS.RESTAdapter.extend({
177
182
  ajax: function(url, type, hash) {
178
- var token;
179
- if (token = Auth.get('authToken')) {
180
- hash.data || (hash.data = {});
181
- hash.data[Auth.Config.get('tokenKey')] = Auth.get('authToken');
182
- }
183
183
  hash.context = this;
184
184
  return Auth.ajax(url, type, hash);
185
185
  }
@@ -1,5 +1,5 @@
1
1
  module EmberAuth
2
2
  module Rails
3
- VERSION = '3.6.1'
3
+ VERSION = '3.7.0'
4
4
  end
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module EmberAuth
2
- VERSION = '2.4.1'
2
+ VERSION = '2.5.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-auth-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.1
4
+ version: 3.7.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: