ish_models 3.1.0.16 → 3.1.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/wco/leadset.rb +3 -3
- data/app/models/wco/newsitem.rb +9 -0
- data/app/models/wco/profile.rb +2 -0
- data/app/models/wco_hosting/serverhost.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc3056e321f83d069cb82d5faa4223206443d4bd187e12fe2fa242d0a235ec98
|
4
|
+
data.tar.gz: fecd205816177999eca53542fc1fa4d3900ebb2f050118001e82f49131823253
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 474a5d1e4245662c1dc26a7827d503b40716bc4a2162ea2cf865a35ac7e73fbea6e6de2f7f89bc434112da188be61ed6daeb110ca0e493aa8c39536c39e8035b
|
7
|
+
data.tar.gz: 73a7ef052debb57b8f021209529008184568128f4d419f4ba763f214961f2e3162fef8f4337e120e2399fd71545f22d5500330be30db2751a426d3aa4c92ad27
|
data/app/models/wco/leadset.rb
CHANGED
@@ -5,18 +5,18 @@ class Wco::Leadset
|
|
5
5
|
store_in collection: 'wco_leadsets'
|
6
6
|
|
7
7
|
field :company_url
|
8
|
-
def domain; company_url; end
|
8
|
+
def domain; company_url; end ## @TODO: remove
|
9
9
|
validates :company_url, presence: true, uniqueness: true
|
10
10
|
index({ company_url: 1 }, { name: 'company_url' })
|
11
11
|
|
12
12
|
field :email
|
13
13
|
index({ email: 1 }, { name: 'email' })
|
14
|
-
validates :email, presence: true, uniqueness: true
|
14
|
+
validates :email, presence: true # , uniqueness: true ## @TODO: should it be unique? _vp_ 2023-12-22
|
15
15
|
|
16
16
|
has_many :profiles, class_name: 'Wco::Profile', inverse_of: :leadset
|
17
17
|
has_many :appliances, class_name: 'WcoHosting::Appliance', inverse_of: :leadset
|
18
18
|
|
19
|
-
|
19
|
+
has_and_belongs_to_many :serverhosts, class_name: 'WcoHosting::Serverhost' # , inverse_of: :leadset
|
20
20
|
def next_serverhost
|
21
21
|
serverhosts.first
|
22
22
|
end
|
data/app/models/wco/profile.rb
CHANGED
@@ -13,7 +13,7 @@ class WcoHosting::Serverhost
|
|
13
13
|
field :name, type: :string
|
14
14
|
validates :name, uniqueness: { scope: :leadset }, presence: true
|
15
15
|
|
16
|
-
|
16
|
+
has_and_belongs_to_many :leadsets, class_name: 'Wco::Leadset'
|
17
17
|
|
18
18
|
field :next_port, type: :integer, default: 8000
|
19
19
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ish_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0.
|
4
|
+
version: 3.1.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mac_a2141
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -139,6 +139,7 @@ files:
|
|
139
139
|
- app/mailers/ish_models/application_mailer.rb
|
140
140
|
- app/models/wco/lead.rb
|
141
141
|
- app/models/wco/leadset.rb
|
142
|
+
- app/models/wco/newsitem.rb
|
142
143
|
- app/models/wco/office_action.rb
|
143
144
|
- app/models/wco/profile.rb
|
144
145
|
- app/models/wco/tag.rb
|