easy_auth 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/easy_auth/controllers/authenticated.rb +1 -1
- data/lib/easy_auth/version.rb +1 -1
- 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: 7c506c15fbe57ca86a170869793a47d5a7e53bb8
|
4
|
+
data.tar.gz: 0fc2c2c623b70a313245bb0b1ee63e25aa60c0e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90d4122baccec52d538eb1ae4d447870b33eb18342d3094f46de4ee2b25f1fc5c13dc9893c6471ff8b2fd258d5e0cbf3577f7707ba59ddb2937eecfba600c458
|
7
|
+
data.tar.gz: bafb8b5df73f33e84181f2bc5450bba9c9ca907d6e78af4fb57adb6c7f3bd01d2dff6e22058d0bdffc168bee3ccb3f0da8ea8ce32849a96c2344376b2b40c800
|
@@ -9,7 +9,7 @@ module EasyAuth::Controllers::Authenticated
|
|
9
9
|
|
10
10
|
def attempt_to_authenticate
|
11
11
|
if account_not_signed_in?
|
12
|
-
session[:requested_path] = request.method == 'GET' ? request.
|
12
|
+
session[:requested_path] = request.method == 'GET' ? request.fullpath : request.referer
|
13
13
|
respond_to do |format|
|
14
14
|
format.html { redirect_to main_app.sign_in_url }
|
15
15
|
format.json { render :json => {}, :status => 401 }
|
data/lib/easy_auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Cardarella
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-03-
|
12
|
+
date: 2014-03-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|