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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5540b7c5116a96e9207abea0fdae223f464e0fc
4
- data.tar.gz: a6fc05971490553fe7a3ffe86f0f3b28b9fe367c
3
+ metadata.gz: 98ddbbbd16bad9c9239a196acf1990197e1b4787
4
+ data.tar.gz: ffedc01e75bc0726f6e996178fd8a0503b1a6230
5
5
  SHA512:
6
- metadata.gz: 291081ab1c5857b0b3c1e228e28287e243eef9351b84fdf427430dba780a321c9d924fc7caa34b1eeaa244a1d3a5a8651497be6d49add4a5148244ef8138a6f0
7
- data.tar.gz: ab3baf2a220c81412c55573b4d534db246c760cf3eb5a4febe15dd43ef5553a7502bbc49cdacb3c84f39a47e94c9e15a6530773df3ee02afcc9448130c128265
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: :all_blank
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: :all_blank
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
 
@@ -1,3 +1,3 @@
1
1
  module MagicLocales
2
- VERSION = "0.0.19"
2
+ VERSION = "0.0.20"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_locales
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torsten Wetzel