wco_models 3.1.0.306 → 3.1.0.308

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: a8f5b0a2dee427291f2f6e91778c749bad1d27000cfaec5248c0d753575ab897
4
- data.tar.gz: 115c8df45585c59d17889e95fbb4122c8fa9da60f58c0cbb32a6b021fb62c5a8
3
+ metadata.gz: 0c678a6b553605195933c976449a227252e16f04ebb5aac3bfb22ca6e6ae6758
4
+ data.tar.gz: 9c47b3c20fa80d111f0d12f47329ce01f1f1b73488e5b74eb90a2200f298c6f0
5
5
  SHA512:
6
- metadata.gz: ab1f1a65f9e3109e5ad25ad1a930dcda540421e8bb90870ee1d35d9c564364f5915f1cfc091a69255bb3e6e511052b9ddb794e62071b2bb62af661add155e230
7
- data.tar.gz: '0589b0ea20dc4c9a912e02f88576c19ccda762ccc3e0a96c5888491c4a70a2f5acd9f77cb62377da32767ef22521a18186e647212e9d952c34fe61cb33ca654e'
6
+ metadata.gz: 1df5268b9b30b73e18cf9f86b1c24ba9b6ddbaa03632de4802b35a3a33b4314a08d9d0826b9b1f1634d9231e1bc73b435e9c9d5ac4e52ebb2260cea7f2103bef
7
+ data.tar.gz: 30a9e763eb56e9a48b86d49024908a6ec5599de3085e7340caed974ea5811863bc64f35ed45ab367bba4c3f653e5cc12e4c89e982ac3faadc526d99bb9e9e523
@@ -6,6 +6,7 @@ class Wco::Api::LeadsController < Wco::ApiController
6
6
 
7
7
  def by_email
8
8
  @lead = Wco::Lead.find_or_create_by_email( params[:email] )
9
+ render formats: [:json]
9
10
  end
10
11
 
11
12
  ## select2-leads-ajax
@@ -10,7 +10,9 @@ class Wco::ApiController < ActionController::Base
10
10
  private
11
11
 
12
12
  def check_credentials
13
- if params[:secret] != AWS_SES_LAMBDA_SECRET
13
+ if params[:secret].blank? ||
14
+ params[:secret] != AWS_SES_LAMBDA_SECRET
15
+
14
16
  render status: 400, json: { status: 400, message: "#check_credentials in wco says unauthorized." }
15
17
  return
16
18
  end
@@ -16,9 +16,7 @@
16
16
  <b>unsubscribed_at:</b>
17
17
  = @lead.unsubscribed_at
18
18
  %li
19
- Leadset:
20
- = link_to @lead.leadset.company_url, leadset_path(@lead.leadset)
21
- = link_to '[~]', edit_leadset_path(@lead.leadset)
19
+ = render 'wco/leadsets/show_inline', leadset: @lead.leadset
22
20
  -# %li Rating: #{@lead.rating}
23
21
  - if @lead.phone
24
22
  %li Phone: #{@lead.phone}
@@ -0,0 +1,6 @@
1
+
2
+ .leadsets--show-inline
3
+ Leadset:
4
+ = link_to leadset.company_url, leadset_path(leadset)
5
+ = link_to '[~]', edit_leadset_path(leadset)
6
+ = render 'wco/tags/list_chips', tags: leadset.tags
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.306
4
+ version: 3.1.0.308
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
@@ -635,6 +635,7 @@ files:
635
635
  - app/views/wco/leadsets/_index.haml
636
636
  - app/views/wco/leadsets/_index_chips.haml
637
637
  - app/views/wco/leadsets/_list.haml
638
+ - app/views/wco/leadsets/_show_inline.haml
638
639
  - app/views/wco/leadsets/edit.haml
639
640
  - app/views/wco/leadsets/index.haml
640
641
  - app/views/wco/leadsets/index_dataTables.haml