custom_fields 2.10.0.beta3 → 2.10.0.rc1

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
  SHA256:
3
- metadata.gz: 92008a0e4adc50b36d45541d2e9a552f5a933c668fda3c563cb44f6da98938a8
4
- data.tar.gz: 74b7e9231c7f25b2c814f24491a00228111c16002bf3f0a9c28ec1589db17536
3
+ metadata.gz: a75900d342dfaf1ea67c7911b4bd51080e4f64499a488a9973efdb7f607ee11e
4
+ data.tar.gz: 6cb9af25862c3a16a7c8f505b158882500506e06e37a105b3e185e648cd61e92
5
5
  SHA512:
6
- metadata.gz: 72cde13cf67b46cc86c44c858072d10e209e1e3496d1ae32e0ba9736aefac849003d830ad8b15562796b3a5d66251b276ec8a8aaa693ba97d277b9f528960f71
7
- data.tar.gz: 7e55cb358cdca1cddacb4791f14eefa3cc67991765d1d27f17131a1bf7cf45093f2174c049b3e1ca85eac9c262975e35319b61483f71f6a3f4bff8a73a82a037
6
+ metadata.gz: 658a1a08a5889cbf8f2f52243eeca81f149d9fa7dad4d2557daea6a4c387654db6a5c1470cb08a6744ce11880567534bee814060c3741d8fcbb62c78d9a20148
7
+ data.tar.gz: f54950d57371f706065bf6dfe43105afc3282a67f83923bdddb02cd51fd440a8f49e09cc0328f9dad20663c3415bec1137dafffc78e925d5463b8f9d75bd878f
@@ -36,7 +36,7 @@ module CarrierWave
36
36
  # in the default locale. Now, we want to upload a file in another locale with
37
37
  # a different name.
38
38
  # We absolutely don't want to erase the file in the default locale
39
- if record.class.fields[column.to_s].localized? &&
39
+ if record.class.fields[column.to_s]&.localized? &&
40
40
  record.changes[column]&.first == '_new_'
41
41
  _before = [nil]
42
42
  end
@@ -1,5 +1,5 @@
1
1
  module CustomFields #:nodoc
2
2
 
3
- VERSION = '2.10.0.beta3'
3
+ VERSION = '2.10.0.rc1'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: custom_fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.0.beta3
4
+ version: 2.10.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didier Lafforgue
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-05 00:00:00.000000000 Z
11
+ date: 2019-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid