effective_addresses 1.11.7 → 1.11.8
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 +4 -4
- data/app/models/concerns/acts_as_addressable.rb +6 -0
- data/lib/effective_addresses/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2afcf38cba25b3ca21830e103506724b1ae36553cdaaae37af58166a1a695408
|
|
4
|
+
data.tar.gz: 5937b37e80e35d65e230e790ef4a9064ddc5847eeaeed9e27d21d55516d9130b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 02ac0e8a292633a82f4adfce8e2e4198d82f7336f4a9f96277482ed87bc73a685f0c46e329d898dec181a48da2accde2746a6ec8ac8881d7878ae09b7af4db09
|
|
7
|
+
data.tar.gz: 9f85db355e7e9a4f458ab4929089a95afb354ba505ba0ad58cfece65a8b89f493e261bdc6b2cf44a10ad9308f435a2c5f8a3dcf95b29db0530e258b111b38612
|
|
@@ -95,6 +95,9 @@ module ActsAsAddressable
|
|
|
95
95
|
address = effective_address('billing')
|
|
96
96
|
end
|
|
97
97
|
|
|
98
|
+
# Same as billing was selected, but there is no billing address to copy from yet
|
|
99
|
+
return if address.blank?
|
|
100
|
+
|
|
98
101
|
# Prevents duplicates from being created
|
|
99
102
|
return effective_address(category) if address == effective_address(category)
|
|
100
103
|
|
|
@@ -124,6 +127,9 @@ module ActsAsAddressable
|
|
|
124
127
|
address = effective_address('billing')
|
|
125
128
|
end
|
|
126
129
|
|
|
130
|
+
# Same as billing was selected, but there is no billing address to copy from yet
|
|
131
|
+
return if address.blank?
|
|
132
|
+
|
|
127
133
|
# This wouldn't create duplicates anyway
|
|
128
134
|
return effective_address(category) if address == effective_address(category)
|
|
129
135
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_addresses
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.11.
|
|
4
|
+
version: 1.11.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
11
|
+
date: 2026-06-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|