wco_models 3.1.0.295 → 3.1.0.297

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aac6ef3547a4fd1e45ac6924cbddda2a838a2f45615efe4f3891007620faf42c
4
- data.tar.gz: 03fb914ab2edb2b9111cf0ea56fb30ec15323fc7d7835268c936c1ac41498ea3
3
+ metadata.gz: 00a4c75c2015e7480022b1bff7f653b840ae014edab75ba27b140473788b3e45
4
+ data.tar.gz: f2339a5fa6aeb714d0466eb8193e526ec1d48520424b968a777f8c5d560cd069
5
5
  SHA512:
6
- metadata.gz: 00cbd416cc13490c003916239a4634af280842117bb3261188988872de79b442ad11b82f2c419cb0d7a1cc795dade28106c4a24958faaea1bb6ab697251571f3
7
- data.tar.gz: 394bb7b5a44da6abbe1b862d7244c05685fdf1f3356f636ee93a5edf45ddfc8a96af9945da27ffda66d896db3085a16e310f76a9d8c1750a9b4231eff15fba61
6
+ metadata.gz: 5821d36df0ebcabb2da6b0ce3f222d09077493f39731f23718e45c27ddf4e50c175ea8fe20ce04424b7d9a1f1923d422b812100fbc76ec5e543d448055c8d2bf
7
+ data.tar.gz: 967829277ae985c47324ab49f455d5b1b2d84d3c97d0c3a76e6a277314c95af891bce4c313d14102f4e2a74e2a717ee75ed5c86bce18defebf6017b6ec9a7a22
@@ -11,7 +11,7 @@ class Wco::Lead
11
11
  index({ email: -1 }, { unique: true })
12
12
 
13
13
  field :name
14
- validates :name, uniqueness: true
14
+ # validates :name, allow_nil: true, uniqueness: true
15
15
  index({ name: -1 })
16
16
  def name
17
17
  if !self[:name].present?
@@ -9,4 +9,5 @@
9
9
  = link_to '[~]', edit_profile_path(profile)
10
10
  .d-inline-block= button_to 'x', profile_path(profile), method: :delete, data: { confirm: 'Are you sure?' }
11
11
  = profile.email
12
- <b>Leadset:</b> #{link_to profile.leadset, leadset_path(profile.leadset)}
12
+ - if profile.leadset
13
+ <b>Leadset:</b> #{link_to profile.leadset, leadset_path(profile.leadset)}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.295
4
+ version: 3.1.0.297
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev