lato 3.13.4 → 3.13.5
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa07b95abf829696db9d8ff107ea9fcfe03798fc160bc80f6f3bb32c609d3b55
|
4
|
+
data.tar.gz: 17a4c069e82cfbb79f48e57e481445128b34d2e8e88f0c977569e84ab471ccf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b0548839ad403f3feb193445c8237ee06cd3f5c44b5c61a8d06f4fa70ba4ffec536533fb4e8996960e0d9e935dfe3f604ae4f84292456c1f36396e15371fff7
|
7
|
+
data.tar.gz: 99d6f280cac1e467e36eb34aad42a7e026275a7a1fa2de064fcc04a1a5017016fc12b049bc223e309e42d66ee2c031ea434c7024f64a434d875f81c987553dfd
|
@@ -9,7 +9,7 @@ module Lato
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def authenticate_session
|
12
|
-
return true if @session.
|
12
|
+
return true if @session.really_valid?
|
13
13
|
|
14
14
|
respond_to do |format|
|
15
15
|
format.html { redirect_to lato.root_path }
|
@@ -20,7 +20,7 @@ module Lato
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def not_authenticate_session
|
23
|
-
return true unless @session.
|
23
|
+
return true unless @session.really_valid?
|
24
24
|
|
25
25
|
respond_to do |format|
|
26
26
|
format.html { redirect_to lato.root_path }
|
@@ -11,7 +11,7 @@ module Lato
|
|
11
11
|
|
12
12
|
def index
|
13
13
|
session_root_path = Lato.config.session_root_path ? main_app.send(Lato.config.session_root_path) : lato.account_path
|
14
|
-
redirect_to @session.
|
14
|
+
redirect_to @session.really_valid? ? session_root_path : lato.authentication_signin_path
|
15
15
|
end
|
16
16
|
|
17
17
|
def offline
|
@@ -46,7 +46,7 @@ module Lato
|
|
46
46
|
def set_default_locale
|
47
47
|
return unless @session.valid?
|
48
48
|
|
49
|
-
I18n.locale = @session.user
|
49
|
+
I18n.locale = @session.user&.locale || I18n.default_locale
|
50
50
|
end
|
51
51
|
|
52
52
|
def respond_to_redirect_same_page(notice = nil)
|
data/app/models/lato/session.rb
CHANGED
data/lib/lato/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lato
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.13.
|
4
|
+
version: 3.13.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregorio Galante
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|