ish_models 0.0.33.243 → 0.0.33.244

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ish/email_campaign.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3cb9bfd0b2e4267bdafbdc6e0e07d9064dfcb7c5bcc4d767ccf14e12ee0f81fb
4
- data.tar.gz: b17871e045a9983e191457ad8ec843c03ce4cb515b0846ba1c5b23457a0ade34
3
+ metadata.gz: e03d895b8c833b21a3305f9acf0dc93eea440a0aa129347f39912ac2ad28fdc8
4
+ data.tar.gz: 88217b632351f5ddb12991a90b707862131d21d4a2daf5c1acce3c708ea08ccc
5
5
  SHA512:
6
- metadata.gz: f1c4d9279bc85b0c051a705e18bc0404a03880e04a69d0e73056e306f6aac13f789b8afebdb73dab6e3b5b8c6fd9fde0bf10dc4f33a5f9520784109500221ed6
7
- data.tar.gz: 45207a395aab807bdaf12b33b277e4d342267fdd5eb7ae00672e231cc93153671fc42e68fb284300068976d3f0b557cec4dd8502918a95dec76bf540c849e198
6
+ metadata.gz: aeaba4225359ffea476ac05300ddb16c31053d164dab56807479958e06ba4f56d109531fe980a712743ce64324b282e188b3edad2bd31dddc48eb8b915b662cd
7
+ data.tar.gz: c0f379b695e049d84c590ad6faa9e839befe7f54f976a89af6476c06657ee6e555d29cee5d9157b57edf5451b59a135540f6882991f88498e816fafc1dcb7ad9
@@ -36,7 +36,7 @@ class Ish::EmailCampaign
36
36
  end
37
37
 
38
38
  def leads
39
- campaign_leads&.map { |p| p.lead }
39
+ ::Lead.joins( :email_campaign_leads ).where( 'email_campaign_leads.email_campaign_id' => self.id.to_s )
40
40
  end
41
41
 
42
42
  ##
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33.243
4
+ version: 0.0.33.244
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox