alchemy_cms 4.2.1 → 4.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/alchemy/admin/locale.rb +1 -1
- data/lib/alchemy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d15084caa39f27fd7e147a1b8a084703ac45296d8a07eb4beff76b112eefdb0e
|
4
|
+
data.tar.gz: aa0a0ce5aefb6e4ec8f515ce32dfc4318aa0c4fd0890dcf645e20e848f8a47cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 838e6dabcd215deca170a9a521bd65e409edfe450486c675234c42b49de5303fcdbfb16b842a1fab81e3dd322efcb25176e7f52f6e1b81baa4f910ab873fc02d
|
7
|
+
data.tar.gz: 6e0e0db13cc814a9956402df065b513858d94e46677ccbe37435b69dd522d096137416d3c75692e990b412d35a01ddb9f95d5aa0a6763c21080a2b3e5509c34f
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 4.2.2 (2019-08-13)
|
2
|
+
|
3
|
+
- Fallback to default locale if unavailable locale requested [#1610](https://github.com/AlchemyCMS/alchemy_cms/pull/1610) ([mamhoff](https://github.com/mamhoff))
|
4
|
+
|
1
5
|
## 4.2.1 (2019-08-08)
|
2
6
|
|
3
7
|
- Use strings as JSON root keys in API controllers [#1602](https://github.com/AlchemyCMS/alchemy_cms/pull/1602) ([tvdeyen](https://github.com/tvdeyen))
|
data/lib/alchemy/admin/locale.rb
CHANGED
@@ -28,7 +28,7 @@ module Alchemy
|
|
28
28
|
|
29
29
|
# Checks if we need to change to locale or not.
|
30
30
|
def locale_change_needed?
|
31
|
-
params[:admin_locale].present? || session[:alchemy_locale].blank?
|
31
|
+
params[:admin_locale].present? || session[:alchemy_locale].blank? || available_locale.nil?
|
32
32
|
end
|
33
33
|
|
34
34
|
# Returns either the most preferred locale that is within the list of available locales or nil
|
data/lib/alchemy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alchemy_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas von Deyen
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2019-08-
|
16
|
+
date: 2019-08-13 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: active_model_serializers
|