lato 3.14.2 → 3.14.3
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 +4 -4
- data/app/controllers/lato/application_controller.rb +1 -1
- data/lib/lato/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bd28a8dd385f29b03486c0822cbcf41984a4b37f41961a572c1be884db52fc4
|
4
|
+
data.tar.gz: f67713eae56568be454d1bb6a42850daa3469ef3dda0a289d931b1d16217855f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5df4ec19f91131f7e05d59db50e376e00b91f42931e059a4c39cb366ae502bfb1d899958a3fb6baabe12f6672e7c6205f7c84e376870a3e5f7ddef1c721c89c5
|
7
|
+
data.tar.gz: 6944543a605c6fcd65ff8fb8cb1261b77953c84c3645789f524866db4725bbb828628db746c77e697c2d4a39c08aa4401a004fb094076165a84abe3f7ec679e2
|
@@ -41,7 +41,7 @@ module Lato
|
|
41
41
|
# This method is used to get the real ip of the user when the application is behind a proxy.
|
42
42
|
# For example if the application is behind a nginx proxy the request.remote_ip will be the ip of the proxy and not the ip of the user.
|
43
43
|
def override_request_remote_ip
|
44
|
-
request.remote_ip = request.headers['X-Forwarded-For'] if request.headers['X-Forwarded-For']
|
44
|
+
request.remote_ip = request.headers['X-Forwarded-For'].split(',').first if request.headers['X-Forwarded-For']
|
45
45
|
end
|
46
46
|
|
47
47
|
# This method set the default locale for the application.
|
data/lib/lato/version.rb
CHANGED