effective_products 0.3.16 → 0.3.17

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: afbc6227101638c21a9bba8eeed7fac6b5027e075b30322d6d8f5dbf4dd231b8
4
- data.tar.gz: 0fe7a3f9fc821487e00ad2aaf92a0eb3a6ec0d8aed0e831326691877e5786d2b
3
+ metadata.gz: 46255e5236e0b107b287d045005b8157ea8f43af6b145c16cd4864212fc527f2
4
+ data.tar.gz: dad1f9cab3951123cf7b9418fdaf4046180509426e2147a3af2a750c0241a96b
5
5
  SHA512:
6
- metadata.gz: 49b111ab3b99263823fb75d162f6fb4ce2b73d2668eab9d2d3c76b661ab02a9aaf745326a6300be30801ffb061c3a03d04571061d35454e4dda3a689be904ccc
7
- data.tar.gz: '0285fd9550b968d3f463efd23eb84820045eaaedac84dbfbd31583542f7f925caf7243678fda6669d69352e72918546ab7244066702bcf667abbe86a67d0a503'
6
+ metadata.gz: 198c71f81926c7c94dcd635fc38af903335e2d8ecc2b0e019993074823ed0b7d12b93be44e553d3e4d41cbf290ec7e47185c717f6531ab886ef2f62a4e070add
7
+ data.tar.gz: 4adfde166b02b7ae6b569aef100b0d02704707313a7de3c38698e57c1ad74a32602031aebeb9bef72744dbbdabd07629fbf6332021681c8549120468cc6e2021
@@ -50,24 +50,17 @@ module Admin
50
50
 
51
51
  col :category, search: EffectiveProducts.stamp_categories
52
52
 
53
- col :shipping_address
54
- col(:address1, visible: false) { |stamp| stamp.shipping_address.try(:address1) }
55
- col(:address2, visible: false) { |stamp| stamp.shipping_address.try(:address2) }
56
- col(:city, visible: false) { |stamp| stamp.shipping_address.try(:city) }
57
- col(:state_code, visible: false, label: 'Prov') { |stamp| stamp.shipping_address.try(:state_code) }
58
- col(:postal_code, visible: false, label: 'Postal') { |stamp| stamp.shipping_address.try(:postal_code) }
59
- col(:country_code, visible: false, label: 'Country') { |stamp| stamp.shipping_address.try(:country_code) }
60
-
61
- if current_user.respond_to?(:billing_address)
62
- col :user_billing_address, visible: false do |stamp|
63
- stamp.owner.try(:billing_address).try(:to_html)
64
- end
65
- end
66
-
67
53
  if current_user.respond_to?(:shipping_address)
68
- col :user_shipping_address, visible: false do |stamp|
54
+ col :user_shipping_address, label: "Shipping Address" do |stamp|
69
55
  stamp.owner.try(:shipping_address).try(:to_html)
70
56
  end
57
+
58
+ col(:address1, visible: false) { |stamp| stamp&.owner.shipping_address.try(:address1) }
59
+ col(:address2, visible: false) { |stamp| stamp&.owner.shipping_address.try(:address2) }
60
+ col(:city, visible: false) { |stamp| stamp&.owner.shipping_address.try(:city) }
61
+ col(:state_code, visible: false, label: 'Prov') { |stamp| stamp&.owner.shipping_address.try(:state_code) }
62
+ col(:postal_code, visible: false, label: 'Postal') { |stamp| stamp&.owner.shipping_address.try(:postal_code) }
63
+ col(:country_code, visible: false, label: 'Country') { |stamp| stamp&.owner.shipping_address.try(:country_code) }
71
64
  end
72
65
 
73
66
  col :purchased_order, search: :string, visible: false
@@ -1,3 +1,3 @@
1
1
  module EffectiveProducts
2
- VERSION = '0.3.16'.freeze
2
+ VERSION = '0.3.17'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_products
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.16
4
+ version: 0.3.17
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: 2025-10-22 00:00:00.000000000 Z
11
+ date: 2025-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails