dscf-marketplace 0.2.5 → 0.2.6

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: 2f8934e507e46d96767591f68f26790969449c058d6eb4a21dd5af54448d383e
4
- data.tar.gz: 24b96ff375ebc4893b38e57e7afc84f4f28a7e7e4120b58d992c03481802bbc8
3
+ metadata.gz: 68cb61e35aaea775a2a5e88a5edb64c5ef3a4f6a9be4b21705a8242374037e03
4
+ data.tar.gz: 3d95af83bd2325f7183dd63ed0dddf0f86cc59f04c3d74be9db8d9af139ff35b
5
5
  SHA512:
6
- metadata.gz: 444ee5aa9c80f4db2a8f86c2873466a97fc51f9bdc91923e5e6bf7ea5652427986769878fc0834f0acd43cfae58af3bac62bb3ab1e44d3f341da4dcd96c284ae
7
- data.tar.gz: 8f0e2a29a64b6fa9e770564ecbd9f6217955e3b7a37b7e7af4965728f52b21c30e01b0e7c47e09d102a3ea8610eed7d8fc1d027958030354cf205d68221fdddd
6
+ metadata.gz: 7c62557a1ad6c9869a7d99cd2be426793a4dbb33d86278ae031a01714ee59696d7cd8ecc462be93078b83be4d5e818343e166fbc9252990056ebaf6533ae1e3c
7
+ data.tar.gz: d3cb0cdd4512ddcd2e7f767d11b57763dfe29f75026f5d7cbbb6378bf50f11cb4b49a7adf324f2952d7453759999a7331d6e6db27c17603d1ed29ed883bd8791
@@ -34,7 +34,7 @@ module Dscf
34
34
  def my_listings(params = {})
35
35
  listings = Dscf::Marketplace::Listing.joins(:business)
36
36
  .where(dscf_core_businesses: {user_id: @current_user.id})
37
- .includes(:business, :supplier_product, :order_items)
37
+ .includes(:business, :supplier_product, :order_items, supplier_product: [ :product ])
38
38
 
39
39
  apply_filters(listings, params)
40
40
  end
@@ -50,7 +50,7 @@ module Dscf
50
50
  def listings_by_supplier(supplier_id, params = {})
51
51
  listings = Dscf::Marketplace::Listing.joins(:supplier_product)
52
52
  .where(dscf_marketplace_supplier_products: {business_id: supplier_id})
53
- .includes(:business, :supplier_product, :order_items)
53
+ .includes(:business, :supplier_product, :order_items, supplier_product: [ :product ])
54
54
 
55
55
  apply_filters(listings, params)
56
56
  end
@@ -1,5 +1,5 @@
1
1
  module Dscf
2
2
  module Marketplace
3
- VERSION = "0.2.5".freeze
3
+ VERSION = "0.2.6".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dscf-marketplace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Asrat