ish_manager 0.1.8.486 → 0.1.8.487

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: 0ca5931a85f58c3642b00d7126a3ba65e4e4c9217250a57f6b6f0920ed3773c0
4
- data.tar.gz: b12427c8f458308a0c3cd361efdb837d493b5beb78644be4dd33349fb0d6cb9e
3
+ metadata.gz: 33e51b9b4ac4f6e3ec605e6668b6b2688a840a7bca1672ae916a127e8392415d
4
+ data.tar.gz: 01e58fe707cc02dc8addb155cd08390653a09b159c5ca035adef3ed238e430f4
5
5
  SHA512:
6
- metadata.gz: 967c920577927c108be297b04a7f89b7371e92fd2ee2817b53050ffd7fd14131324e5acbd175e75afa554182388bd5064cc2f144fcdafd9544a3251e96bbd5f5
7
- data.tar.gz: d48517aca4830c477d03b3a825b8274b8eacd1a1f0adec2697fe83a76557b14bebf334a2a4dab225508d55e98e0522288dda1f418fa45c411db542629d371b7c
6
+ metadata.gz: 3244e5262927a77611abe82f489a93e9f3179e5fe1ac4d93b65d944530f4785206de0a61e0d0214345905a34f767a9919bfec9b391411bed67ecc74b309d2713
7
+ data.tar.gz: 6701257ddbf4376754f7a33fc26a6f32663c684475e85e234a8acdd9861d7a4da6e9df7398e04c041b1bcf7445fbce6f84e6cbe6b19ab36dabad7390fc958f82
@@ -4,6 +4,9 @@ class ::IshManager::UnsubscribesController < IshManager::ApplicationController
4
4
  def index
5
5
  authorize! :index, Ish::EmailUnsubscribe
6
6
  @unsubscribes = Ish::EmailUnsubscribe.all
7
+ lead_ids = @unsubscribes.map(&:lead_id).compact
8
+ @leads_h = Lead.find_to_h( lead_ids )
9
+ puts! @leads_h, 'ddz'
7
10
  end
8
11
 
9
12
  end
@@ -1,17 +1,19 @@
1
1
 
2
2
  .unsubscribes-index.maxwidth
3
+ %h5 Unsubscribes
3
4
 
4
5
  %table.bordered.data-table
5
6
  %thead
6
7
  %tr
7
- %td Email
8
+ %td Lead
8
9
  %td Date
9
10
  %td campaign_id
10
11
  %td template_id
11
12
 
13
+
12
14
  - @unsubscribes.each do |i|
13
15
  %tr
14
- %td= i.email
16
+ %td= @leads_h[i.lead_id]
15
17
  %td= i.unsubscribed_at
16
18
  %td= i.campaign
17
19
  %td= i.template
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.486
4
+ version: 0.1.8.487
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox