wco_models 3.1.0.50 → 3.1.0.51
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/wco/leadset.rb +5 -1
- data/app/views/wco/galleries/edit.haml +5 -5
- data/app/views/wco/invoices/index.haml +1 -1
- data/app/views/wco/invoices/new_pdf.haml +1 -1
- data/app/views/wco/invoices/new_stripe.haml +1 -1
- data/app/views/wco/invoices/show.haml +1 -1
- data/app/views/wco/leads/edit.haml +2 -2
- data/app/views/wco/leads/new.haml +1 -1
- data/app/views/wco/leadsets/_form.haml +0 -4
- data/app/views/wco/leadsets/edit.haml +3 -3
- data/app/views/wco/leadsets/new.haml +1 -1
- data/app/views/wco/products/edit.haml +1 -1
- data/app/views/wco/products/show.haml +1 -1
- data/app/views/wco/videos/edit.haml +2 -2
- data/app/views/wco/videos/new.haml +1 -1
- data/app/views/wco/videos/show.haml +1 -1
- data/config/initializers/assets.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2aedb50a30f432370f7a3d8dce814677b95ec4373a64594aae4b142fa7d31fa
|
4
|
+
data.tar.gz: 6b56ff81d8003170a2d7f2035de0b5708ece56d3bf2576c5f4f2575b8d4e5a84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1887e0d49d5d016b0e672118428bc71809375a1989ee89fa1976eafb8edf4976c27f5733550fd8b82921b49e819c14d3f158a7c56d469660de33fe6c36c3b01
|
7
|
+
data.tar.gz: d2330182a059ad9699441c11e40fd81b7867ec7650cad664a4f8848b56f7f8c2bbf8f712a4104f72b9950ed1c7f0483524921de999def7410a3935a319e0a727
|
data/app/models/wco/leadset.rb
CHANGED
@@ -33,7 +33,7 @@ class Wco::Leadset
|
|
33
33
|
field :customer_id
|
34
34
|
def customer_id
|
35
35
|
if self[:customer_id].blank?
|
36
|
-
return nil if !email
|
36
|
+
return nil if !email.present?
|
37
37
|
existing = Stripe::Customer.search({ query: "email: '#{email}'" })
|
38
38
|
# puts! existing, 'existing'
|
39
39
|
if existing.data.present?
|
@@ -47,4 +47,8 @@ class Wco::Leadset
|
|
47
47
|
self[:customer_id]
|
48
48
|
end
|
49
49
|
|
50
|
+
def to_s
|
51
|
+
company_url
|
52
|
+
end
|
53
|
+
|
50
54
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
|
-
.galleries-edit.
|
3
|
-
= render 'title', :
|
4
|
-
= render 'form', :
|
5
|
-
= render 'thumbs', :
|
6
|
-
= render 'wco/photos/multinew', :
|
2
|
+
.galleries-edit.maxwidth
|
3
|
+
= render 'title', gallery: @gallery
|
4
|
+
= render 'form', gallery: @gallery, :url => gallery_path( @gallery )
|
5
|
+
= render 'thumbs', gallery: @gallery
|
6
|
+
= render 'wco/photos/multinew', gallery: @gallery
|
@@ -1,4 +1,4 @@
|
|
1
1
|
|
2
|
-
.leadsets-edit.
|
3
|
-
%h1 Edit leadset `#{link_to @leadset.
|
4
|
-
= render 'form', :
|
2
|
+
.leadsets-edit.maxwidth
|
3
|
+
%h1 Edit leadset `#{link_to @leadset.company_url, leadset_path(@leadset)}`
|
4
|
+
= render 'form', leadset: @leadset
|