ember-auth-rails 3.3.0 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -119,10 +119,12 @@
119
119
 
120
120
  Auth.Route = Em.Route.extend(Em.Evented, {
121
121
  redirect: function() {
122
- if (Auth.Config.get('authRedirect') && !Auth.get('authToken')) {
122
+ if (!Auth.get('authToken')) {
123
123
  this.trigger('authAccess');
124
- Auth.set('prevRoute', this.routeName);
125
- return this.transitionTo(Auth.Config.get('signInRoute'));
124
+ if (Auth.Config.get('authRedirect')) {
125
+ Auth.set('prevRoute', this.routeName);
126
+ return this.transitionTo(Auth.Config.get('signInRoute'));
127
+ }
126
128
  }
127
129
  }
128
130
  });
@@ -1,5 +1,5 @@
1
1
  module EmberAuth
2
2
  module Rails
3
- VERSION = '3.3.0'
3
+ VERSION = '3.4.0'
4
4
  end
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module EmberAuth
2
- VERSION = '2.1.0'
2
+ VERSION = '2.2.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.3.0
4
+ version: 3.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: