wco_models 3.1.0.198 → 3.1.0.201
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 +4 -4
- data/app/models/iro/stock.rb +1 -1
- data/app/models/wco/profile.rb +1 -0
- data/app/models/wco_email/message_stub.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56346f95d6ca584729b290eda840e6743b5931bea5024b5cefb8f3faa95e2be4
|
4
|
+
data.tar.gz: 2ce94dc19d287f6f459ae913534cc724d33930d6a83a06b43209d9ff79942f12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45d941024cf9244c3e0235dde45cfb2b85819d8d7723bad7f9468327b6bd3014bd255b6821c4bda17a87cf15c60fc2074461d31f6a752c6d4620dc9f9f8f1a5c
|
7
|
+
data.tar.gz: d99a60cca66c2d1d5f2324af4116f95ec08f56e3b05fda6a3743831aee90966d3903f13f39a8c26860b89a2a411f77b8aa8c4dae9e03e51020e01f2941bdbbf7
|
data/app/models/iro/stock.rb
CHANGED
@@ -35,7 +35,7 @@ class Iro::Stock
|
|
35
35
|
has_many :options, class_name: 'Iro::Option', inverse_of: :stock
|
36
36
|
has_many :priceitems, inverse_of: :stock
|
37
37
|
|
38
|
-
belongs_to :
|
38
|
+
belongs_to :profile, class_name: 'Wco::Profile', optional: true
|
39
39
|
LONG_ONLY = 'long-only'
|
40
40
|
LONG_OR_SHORT = 'long-or-short'
|
41
41
|
SHORT_ONLY = 'short-only'
|
data/app/models/wco/profile.rb
CHANGED
@@ -19,6 +19,7 @@ class Wco::Profile
|
|
19
19
|
field :show_n_thumbs, type: :integer, default: 8
|
20
20
|
|
21
21
|
has_many :reports, class_name: 'Wco::Report'
|
22
|
+
has_many :stocks, class_name: 'Iro::Stock'
|
22
23
|
|
23
24
|
belongs_to :leadset, class_name: 'Wco::Leadset', inverse_of: :profile, optional: true
|
24
25
|
has_many :newsitems, class_name: 'Wco::Newsitem'
|
@@ -242,8 +242,10 @@ class WcoEmail::MessageStub
|
|
242
242
|
## 2025-01-23 no longer sending to google.
|
243
243
|
conv = WcoEmail::Conversation.find( conv.id )
|
244
244
|
if conv.tags.include? Wco::Tag.inbox
|
245
|
-
|
246
|
-
|
245
|
+
if defined?(::NOTIFY_TO_GOOGLE) && ::NOTIFY_TO_GOOGLE
|
246
|
+
out = WcoEmail::ApplicationMailer.forwarder_notify( @message.id.to_s )
|
247
|
+
Rails.env.production? ? out.deliver_later : out.deliver_now
|
248
|
+
end
|
247
249
|
end
|
248
250
|
end
|
249
251
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wco_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.0.
|
4
|
+
version: 3.1.0.201
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ahoy_matey
|