wco_models 3.1.0.96 → 3.1.0.98

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: e44f2181d5b05ecc5c9319190b250b9ca2849027fe8cd860a46e919be4a79086
4
+ data.tar.gz: 5f3d6b29987b4f9f70a46ce1149d2d56ab7c238e7f4bf21ee8d8dee071ac1173
5
5
  SHA512:
6
- metadata.gz: da38057b8f74c5c3ce868398cc6868d253f32f2b3ed4803e52ad40caa3f889507ba92b17d46180bd362e79a9a45fb568654667911b3dbdb38528584358b0d1a5
7
- data.tar.gz: 408013e01f428949316aac1ab3866affc50f3efa1ba9ce41147a2451186809c1b053781a67979f381535be23414e138d014e3548d7711e0c2b5cd0d79490ce77
6
+ metadata.gz: 249d572896a5309d87c3ec564f5c513844931faf3b1dad13a8bd1e4947be757e8214fef18520a9630cdbb66fa85e084f8be891e1c25a0757651380a148c5ca3d
7
+ data.tar.gz: 0c796d533f3e79b24878a6d65ecc7c82cfff22cceccdc119db4da07cd0f53a5bc6cd17e5607d91c6672785c47ec9cea6277fe2075bbd748d173da0bf97c97db6
@@ -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
@@ -42,7 +42,7 @@
42
42
  - @lead.ctxs.each do |ctx|
43
43
  %li
44
44
  = pp_date( ctx.sent_at ) || 'not sent'
45
- = link_to ctx.subject.presence||"No Subj?!", email_context_path(ctx)
45
+ = link_to ctx.subject.presence||"No Subj?!", context_path(ctx)
46
46
 
47
47
  .col-md-6.schs
48
48
  %h5
@@ -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.98
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