wco_models 3.1.0.55 → 3.1.0.56

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: 5ae4d6cc7110308649e7a5712cbfe581d43d60020e4033bf2df363578ee65db2
4
- data.tar.gz: 842a7799e8f0d6808b1899913ce4aeb6f6088e10df079c6ecdf845329ed566c0
3
+ metadata.gz: 518acbd07b441333eb2d8171455a8b938a764dbc5f3effb1bcfa1b976bf1d18b
4
+ data.tar.gz: 3758b316e2e56ad2b135142c58cd7106e19ccd9bd586550deffc0e916380e386
5
5
  SHA512:
6
- metadata.gz: 99f8d28d0370c8c0d080c3c622ef6f1f989c8384be29ba28ba062edd60a05f12183a7a37e73c4b19f9e05f10cd4c4d575e7d81ca5112a2c7d6497d793268f845
7
- data.tar.gz: e85181146abbaf57ef9cbca611620fade206ea94ee0f0af5853ed912fa0647c181729e309f24080e3c278e6e9ceb2ddc67d8396eeaa4d9f6ece5437d6f9a0492
6
+ metadata.gz: aff7155f33b85dbd96715d60e777f4a71f47d4c854a86ef73a19aabed19e9be238195f5b9ff5f9750b5f991f707ebd370ab78072a95bdf972a390eb798b3fe0a
7
+ data.tar.gz: fa6528d1f6d3f981289865cba5b71563aed047a0aa3b6e1af6aaf03df8727734c64f095b1ccf0303401c9513921fd0e63eaacfabeed75026340c5e828bd36914
@@ -60,7 +60,7 @@ class WcoEmail::EmailAction
60
60
  end
61
61
 
62
62
  def self.list
63
- [[nil,nil]] + all.map { |p| [ "#{p.lead.email} :: #{p.tmpl.slug}", p.id ] }
63
+ [[nil,nil]] + all.map { |p| [ "#{p.lead&.email} :: #{p.tmpl&.slug}", p.id ] }
64
64
  end
65
65
 
66
66
 
@@ -29,7 +29,7 @@ class WcoEmail::EmailActionTemplate
29
29
  field :deleted_at, default: nil, type: :time
30
30
 
31
31
  def self.list
32
- [[nil,nil]] + WcoEmail::EmailAction.where({ :deleted_at => nil }).map { |a| [ a.slug, a.id ] }
32
+ [[nil,nil]] + all.map { |a| [ a.slug, a.id ] }
33
33
  end
34
34
 
35
35
  end
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.55
4
+ version: 3.1.0.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
@@ -572,7 +572,6 @@ files:
572
572
  - config/routes.rb
573
573
  - lib/tasks/db_tasks.rake
574
574
  - lib/tasks/office_tasks.rake
575
- - lib/tasks/scrape_tasks.rake-trash
576
575
  - lib/wco/ai_writer.rb
577
576
  - lib/wco/engine.rb
578
577
  - lib/wco/office_worker.rb
@@ -1,22 +0,0 @@
1
-
2
- require 'wco/scrape_test'
3
- require 'wco/scrape_test_2'
4
-
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
- namespace :scrape do
8
-
9
- desc 'test'
10
- task :test do
11
- Wco::ScrapeTest.new
12
- end
13
-
14
- desc 'test 2'
15
- task :test_2 do
16
-
17
- site = Wco::Site.find_by slug: 'wsj'
18
- Wco::ScrapeTest2.new( site: site )
19
-
20
- end
21
-
22
- end