jt-rails-generator-user 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 190bed342bd03da41e903da475f855de5936db09
|
4
|
+
data.tar.gz: 226213f111c08d0f95ace706efb8699ae72fd8fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d18fcf2abd36441a8eab4e5dc961712a4b83906afff886b998b02bd745acaa2fe6a6b2d1c33be8d83ac6fbf5a92f95e061e25097f712e4aa9f794f86da69f566
|
7
|
+
data.tar.gz: a0c85a019afbcbbd1030af180a3280c38b2ee270ef2bbba3d5475d4d2372514b4da2cdf41af541183eb59486b48159bd3957ca0ced9f4e9962b4c72f48a9f5cd
|
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
|
|
3
3
|
s.summary = "Generate a scaffold for user authentication in Ruby On Rails"
|
4
4
|
s.description = "JTRailsGeneratorUser is a generator for user authentication. You have the login and sign up page, password forgot feature."
|
5
5
|
s.homepage = 'https://github.com/jonathantribouharet/jt-rails-generator-user'
|
6
|
-
s.version = '1.2.
|
6
|
+
s.version = '1.2.2'
|
7
7
|
s.files = `git ls-files`.split("\n")
|
8
8
|
s.require_paths = ['lib']
|
9
9
|
s.authors = ['Jonathan TRIBOUHARET']
|
@@ -15,9 +15,13 @@ module CurrentUser
|
|
15
15
|
@current_user
|
16
16
|
end
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
def store_location(url = nil)
|
19
|
+
if url
|
20
|
+
session[:return_to] = url
|
21
|
+
elsif request.get? && !request.xhr?
|
22
|
+
session[:return_to] = request.fullpath
|
23
|
+
end
|
24
|
+
end
|
21
25
|
|
22
26
|
def require_user
|
23
27
|
if !current_user
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jt-rails-generator-user
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan TRIBOUHARET
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: validates_email_format_of
|