magic_locales 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/app/models/magic_locales/association.rb +2 -2
- data/lib/magic_locales/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98ddbbbd16bad9c9239a196acf1990197e1b4787
|
4
|
+
data.tar.gz: ffedc01e75bc0726f6e996178fd8a0503b1a6230
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 111f032b466528acdec1fbb1fe103c5a16bae26e246c157e9ae07e5f57fb402ce4aa3bcac26c89258e34cb044221d811e39dd8afbf21aab1583af14b5a17eb15
|
7
|
+
data.tar.gz: 25c8d0edf093820b7dd64f83c4d87584cf2e092f5cf2008cb1a44ec85235058511e821f54ad3017dae3b602e7a43eb0bc0d0d8df4ae09b0dcac9b478b7b4f7f3
|
@@ -18,7 +18,7 @@ module MagicLocales
|
|
18
18
|
class_name: "MagicLocales::Language",
|
19
19
|
dependent: :destroy
|
20
20
|
|
21
|
-
accepts_nested_attributes_for :language, allow_destroy: true, reject_if:
|
21
|
+
accepts_nested_attributes_for :language, allow_destroy: true, reject_if: proc { |atts| atts['locale_id'].blank? }
|
22
22
|
end
|
23
23
|
|
24
24
|
|
@@ -43,7 +43,7 @@ module MagicLocales
|
|
43
43
|
class_name: "MagicLocales::Language",
|
44
44
|
dependent: :destroy
|
45
45
|
|
46
|
-
accepts_nested_attributes_for :spoken_languages, allow_destroy: true, reject_if:
|
46
|
+
accepts_nested_attributes_for :spoken_languages, allow_destroy: true, reject_if: proc { |atts| atts['locale_id'].blank? }
|
47
47
|
end
|
48
48
|
|
49
49
|
|