effective_products 0.3.15 → 0.3.16

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: 0014b113855f8988a2d6aa1d205bcdb592c446f32ffd07e30b20ee4564220457
4
- data.tar.gz: 31f14366cddce6eff908e532f85b9cd4852e0ce15a2a6fad6bf2ecc2907f20cc
3
+ metadata.gz: afbc6227101638c21a9bba8eeed7fac6b5027e075b30322d6d8f5dbf4dd231b8
4
+ data.tar.gz: 0fe7a3f9fc821487e00ad2aaf92a0eb3a6ec0d8aed0e831326691877e5786d2b
5
5
  SHA512:
6
- metadata.gz: a53e8d6b1123c2e57f36da79c53714ebb96809d83f120bb8851dabf83b69b30c0d7ea5eada36dee54599bf251bb1b2e35c58a7667076834b8456835db20334f2
7
- data.tar.gz: 19a5138b8ad96600d1451b1747de1e856e18a3e8a87baf78c50e584de30d270c9f956849e942fad99fa3f96bc9c83b94b364f1e8f38ffc8057dfc75afc722739
6
+ metadata.gz: 49b111ab3b99263823fb75d162f6fb4ce2b73d2668eab9d2d3c76b661ab02a9aaf745326a6300be30801ffb061c3a03d04571061d35454e4dda3a689be904ccc
7
+ data.tar.gz: '0285fd9550b968d3f463efd23eb84820045eaaedac84dbfbd31583542f7f925caf7243678fda6669d69352e72918546ab7244066702bcf667abbe86a67d0a503'
@@ -58,6 +58,18 @@ module Admin
58
58
  col(:postal_code, visible: false, label: 'Postal') { |stamp| stamp.shipping_address.try(:postal_code) }
59
59
  col(:country_code, visible: false, label: 'Country') { |stamp| stamp.shipping_address.try(:country_code) }
60
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
+ if current_user.respond_to?(:shipping_address)
68
+ col :user_shipping_address, visible: false do |stamp|
69
+ stamp.owner.try(:shipping_address).try(:to_html)
70
+ end
71
+ end
72
+
61
73
  col :purchased_order, search: :string, visible: false
62
74
  col :price, as: :price, visible: false
63
75
  col :tax_exempt, visible: false
@@ -1,3 +1,3 @@
1
1
  module EffectiveProducts
2
- VERSION = '0.3.15'.freeze
2
+ VERSION = '0.3.16'.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.15
4
+ version: 0.3.16
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-07-16 00:00:00.000000000 Z
11
+ date: 2025-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails