effective_addresses 1.9.7 → 1.9.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/effective_addresses_helper.rb +2 -2
- 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: 745f86571f2a0f52bf54edf6045a56c5ac5537f1b414344ab55a778b402b8f0b
|
4
|
+
data.tar.gz: ba0656435d9378d950fa2165c7c936bc8a1542827889b60a3cadff148f780ec4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '059f454408860bea37b7627c1269ee37ca7b9835fb04d0bed34e9cb0b20a4128a3dadbd2ab2ff9e7462e632da6cb9512ad96f034122375008f86b04a9e276cf4'
|
7
|
+
data.tar.gz: 7d157adab8db96dffefdb8dbe18037cd37fc1f1858f86afe60c6985d8984161ed1f6b40d8a6297e83cfdc4c5099dd055620c1e9267ee8233a569ca31461fd526
|
@@ -25,8 +25,8 @@ module EffectiveAddressesHelper
|
|
25
25
|
|
26
26
|
def effective_address_pre_select(address)
|
27
27
|
if EffectiveAddresses.pre_selected_country.present?
|
28
|
-
address.country
|
29
|
-
address.state
|
28
|
+
address.country ||= EffectiveAddresses.pre_selected_country
|
29
|
+
address.state ||= EffectiveAddresses.pre_selected_state if EffectiveAddresses.pre_selected_state.present?
|
30
30
|
elsif defined?(Geocoder) && request.location.present?
|
31
31
|
location = request.location
|
32
32
|
address.country = location.country_code
|
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.9.
|
4
|
+
version: 1.9.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:
|
11
|
+
date: 2022-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|