wco_models 3.1.0.96 → 3.1.0.97

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: 2b8f95ac4445fae28c24950aa08aa7c36cfe21d61a7f5791c0ca688862f2216b
4
- data.tar.gz: f37434ed5db0e33d3754b0e91e4cf69c3c90272e358f5229eebc7ca314ec56d0
3
+ metadata.gz: 6d142884790cc222d2fa26774efd391452b802f59ea8c57e30086cf73cb126ce
4
+ data.tar.gz: cf126ee217e6974ffe1e424d8b43b74200e1bcb4456e931f58f29425ab2774e0
5
5
  SHA512:
6
- metadata.gz: da38057b8f74c5c3ce868398cc6868d253f32f2b3ed4803e52ad40caa3f889507ba92b17d46180bd362e79a9a45fb568654667911b3dbdb38528584358b0d1a5
7
- data.tar.gz: 408013e01f428949316aac1ab3866affc50f3efa1ba9ce41147a2451186809c1b053781a67979f381535be23414e138d014e3548d7711e0c2b5cd0d79490ce77
6
+ metadata.gz: 1dfa0e5f9a271f01890e488b0ead7a17cc9abdb24b2b6e75deca5dafc5708c304ce8441169a260de391016a6dabc2fa86ca3e46dcf2e66ba311044096f210603
7
+ data.tar.gz: 931258fd6144687e45a0b24acd6b0ebf3e0346a0930fee68d5d44bb2d2f97e8b2c055e193e7e7d1023d4636bfc0cf58ff3259cf6f263cbc9755476faec308e27
@@ -54,12 +54,12 @@ class Wco::LeadsController < Wco::ApplicationController
54
54
  def show
55
55
  @lead = Wco::Lead.where({ id: params[:id] }).first
56
56
  @lead ||= Wco::Lead.where({ email: params[:id] }).first
57
+ authorize! :show, @lead
57
58
  if !@lead
58
59
  flash_alert "This lead does not exist"
59
60
  redirect_to request.referrer
60
61
  return
61
62
  end
62
- authorize! :show, @lead
63
63
  # @schs = Sch.where( lead_id: @lead.id )
64
64
  # @ctxs = Ctx.where( lead_id: @lead.id )
65
65
  # @convs = Conv.find( Office::EmailConversationLead.where( lead_id: @lead.id ).map( &:email_conversation_id ) )
@@ -79,6 +79,11 @@ class Wco::ProductsController < Wco::ApplicationController
79
79
 
80
80
  end
81
81
 
82
+ def new
83
+ @product = Wco::Product.new
84
+ authorize! :new, @product
85
+ end
86
+
82
87
  def show
83
88
  authorize! :show, @product
84
89
  @product = Wco::Product.find params[:id]
@@ -1,5 +1,5 @@
1
1
 
2
-
2
+ ## In order to have unsubscribes_url , unsubscribes must be in wco .
3
3
  class Wco::UnsubscribesController < Wco::ApplicationController
4
4
 
5
5
  def create
@@ -1,2 +1,2 @@
1
1
 
2
- = render :form, product: @product
2
+ = render 'form', product: @product
@@ -1,4 +1,4 @@
1
1
 
2
2
  .unsubscrives--header
3
3
  = link_to "Unsubscribes (#{WcoEmail::Unsubscribe.all.length})", wco.unsubscribes_path
4
- = link_to '[analytics]', analytics_path
4
+ = link_to '[analytics]', wco.unsubscribes_analytics_path
data/config/routes.rb CHANGED
@@ -50,6 +50,8 @@ Wco::Engine.routes.draw do
50
50
 
51
51
  resources :tags
52
52
 
53
+ ## In order to have unsubscribes_url , unsubscribes must be in wco .
54
+ get 'unsubscribes/analytics', to: 'unsubscribes#analytics'
53
55
  resources :unsubscribes
54
56
 
55
57
  resources :videos
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.96
4
+ version: 3.1.0.97
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-30 00:00:00.000000000 Z
11
+ date: 2024-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-s3
@@ -570,6 +570,8 @@ files:
570
570
  - app/views/wco/tags/index.haml
571
571
  - app/views/wco/tags/new.haml
572
572
  - app/views/wco/tags/show.haml
573
+ - app/views/wco/unsubscribes/_header.haml
574
+ - app/views/wco/unsubscribes/_table.haml
573
575
  - app/views/wco/videos/_form.haml
574
576
  - app/views/wco/videos/_header.haml
575
577
  - app/views/wco/videos/_index.haml
@@ -612,8 +614,6 @@ files:
612
614
  - app/views/wco_email/email_layouts/_slug-3.html.erb
613
615
  - app/views/wco_email/email_layouts/_test_tracking_footer.haml
614
616
  - app/views/wco_email/email_layouts/_wasyaco_roundborders.html.erb
615
- - app/views/wco_email/unsubscribes/_header.haml
616
- - app/views/wco_email/unsubscribes/_table.haml
617
617
  - app/views/wco_hosting/docker-compose/dc-any.erb
618
618
  - app/views/wco_hosting/docker-compose/dc-helloworld.erb
619
619
  - app/views/wco_hosting/docker-compose/dc-wordpress.erb