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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 833420f8f14a04997a7947c6d7f8090ad7d94d9ab8aa5c5d6db340163a706ea8
4
- data.tar.gz: 644f992ba2e95e8f05efa3fb51f978f44182c402b0bc13f7449f0b02fd8bef64
3
+ metadata.gz: 56346f95d6ca584729b290eda840e6743b5931bea5024b5cefb8f3faa95e2be4
4
+ data.tar.gz: 2ce94dc19d287f6f459ae913534cc724d33930d6a83a06b43209d9ff79942f12
5
5
  SHA512:
6
- metadata.gz: 92fc1f474bbfe312097c6f66adb9ba6d65add8c14890180920bcffb380ccde129bfb898bd0c4fc76daa35d01c1caf2e5c1ec5191df02434fe07c319675648ba2
7
- data.tar.gz: 1605dfb6dc8e716af6b2446d8fc50f82f7ec2d718de1a9a934608b2f9bc074d82840d629b1ce371ce5a8c44ade0bb5cf8b6024a8ed4331f5dbeff5c9d42110e0
6
+ metadata.gz: 45d941024cf9244c3e0235dde45cfb2b85819d8d7723bad7f9468327b6bd3014bd255b6821c4bda17a87cf15c60fc2074461d31f6a752c6d4620dc9f9f8f1a5c
7
+ data.tar.gz: d99a60cca66c2d1d5f2324af4116f95ec08f56e3b05fda6a3743831aee90966d3903f13f39a8c26860b89a2a411f77b8aa8c4dae9e03e51020e01f2941bdbbf7
@@ -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 :user
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'
@@ -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
- # out = WcoEmail::ApplicationMailer.forwarder_notify( @message.id.to_s )
246
- # Rails.env.production? ? out.deliver_later : out.deliver_now
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.198
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-01-23 00:00:00.000000000 Z
11
+ date: 2025-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ahoy_matey