wco_models 3.1.0.319 → 3.1.0.320

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: eb0bbcbb476cc3baac9fdea9b4ffd0f45658b8a3569351c1fa3b76f9ee57207d
4
- data.tar.gz: cb8718a36ab08af9d3b59b7b331aa39170bda5d05e1a8ae31b166348c36f77e1
3
+ metadata.gz: 443a87c368a2129a7aab5d43f2838866af52ffb46f7363d262fbd0b0759cbb45
4
+ data.tar.gz: b807e5a65f5566bad7c9722c36733ae675d4e6905621a57641408bc35f2e812d
5
5
  SHA512:
6
- metadata.gz: d6201360d6dfa6ab0ce3fcbc76c1d5387eb6a69d69721651f26467d9fca3cda894ec40a795facd30b48867f55e2b5163a8986cb3f82b98985b954fc5fd9a513e
7
- data.tar.gz: 8f3983afb759a2633103ac3536cc84f9fdbf011688777514103e9810122f956853e750acb6e0ceef3a71d14cb5da60a6be4a87e86745d1f1c698982236cf4b18
6
+ metadata.gz: 8547ddb2272dd81037c0e8c34b07d4327406ffcf05833f1eaa9bc1147604d881358f48b9796e2c7e3f5a3fd1826f24d4c5949d5c37807edd07d926c315440b18
7
+ data.tar.gz: 7eab25e6a504fb39aef9747bcc3ccb91fe7ab574af4fce1be8c506d1a46e1a409348531cc4837f184a416fca6e0036064d2d34d843112e5f64da11506bab139f
@@ -91,6 +91,7 @@ class Wco::Lead
91
91
  self[:unsubscribe_token]
92
92
  end
93
93
  field :unsubscribed_at
94
+ field :allow_unsubscribe, type: :boolean, default: true
94
95
 
95
96
  def to_s
96
97
  # "`#{name}` <#{email}>"
@@ -14,6 +14,10 @@
14
14
  .field
15
15
  %label unsubscribed_at
16
16
  = f.text_field :unsubscribed_at
17
+ .field
18
+ %label allow_unsubscribe
19
+ = f.check_box :allow_unsubscribe
20
+
17
21
 
18
22
  .field
19
23
  = f.label :phone
@@ -19,7 +19,8 @@
19
19
  %hr
20
20
  = raw @ctx.reply_to_message.part_html_sanitized
21
21
 
22
- %br
23
- = link_to 'unsubscribe', wco.unsubscribe_by_token_url( token: @ctx.lead.unsubscribe_token, email: @ctx.lead.email ), style: "color: #999;"
24
- %br
25
- .div{ style: "color: #999;" } WasyaCo 201 W 5th St 11th Floor, Austin, TX 78701
22
+ - if @ctx.lead.allow_unsubscribe
23
+ %br
24
+ = link_to 'unsubscribe', wco.unsubscribe_by_token_url( token: @ctx.lead.unsubscribe_token, email: @ctx.lead.email ), style: "color: #999;"
25
+ %br
26
+ .div{ style: "color: #999;" } WasyaCo 201 W 5th St 11th Floor, Austin, TX 78701
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.319
4
+ version: 3.1.0.320
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev