effective_addresses 1.6.0 → 1.6.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6722f16083017ba989fcb4561c0bffd53e6ddc44
|
4
|
+
data.tar.gz: e8052f649278691a40c9d0d7e5c302974f6c74cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59e79e4b3002e5aab7b181f0b447cf23f2b0408d5b87d0068fab216b1d26182a6b0c96bc49e4ed932cad22ef7fdfaa3e24d229bfb90b68181dc79c472afd6bf5
|
7
|
+
data.tar.gz: 1087a70d2035ed2f80101e137d77dfb435f496f2030ba8323d6f62a4ae99e49668033284b316d19f223a9e6ef6c098b6334b3eee6696c3ea604d856df8ab93f0
|
@@ -6,13 +6,6 @@
|
|
6
6
|
- if ((f.object.errors.include?(method) && !f.object.errors.include?(:addresses)) rescue false)
|
7
7
|
- fa.object.errors.add(:address1, f.object.errors[method].first)
|
8
8
|
|
9
|
-
- if fa.object.category == 'shipping' && f.object.respond_to?(:shipping_address_same_as_billing?)
|
10
|
-
= fa.input :shipping_address_same_as_billing,
|
11
|
-
as: :boolean,
|
12
|
-
label: 'My shipping address is the same as my billing address',
|
13
|
-
required: false,
|
14
|
-
input_html: { checked: shipping_address_same_as_billing }
|
15
|
-
|
16
9
|
- field_order.each do |field|
|
17
10
|
|
18
11
|
- case field
|
@@ -80,3 +73,10 @@
|
|
80
73
|
disabled: shipping_address_same_as_billing,
|
81
74
|
wrapper_html: { style: ('display: none;' if shipping_address_same_as_billing) }
|
82
75
|
|
76
|
+
- if fa.object.category == 'shipping' && f.object.respond_to?(:shipping_address_same_as_billing?)
|
77
|
+
= fa.input :shipping_address_same_as_billing,
|
78
|
+
as: :boolean,
|
79
|
+
label: 'My shipping address is the same as my billing address',
|
80
|
+
required: false,
|
81
|
+
input_html: { checked: shipping_address_same_as_billing }
|
82
|
+
|