item_models 0.0.8 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23b9aa22818ac5a25ddd0129cf10b25e1a319fa5c7b701071c367d0772db7094
4
- data.tar.gz: 80e0af200583ccd374813a8d8998cf751c3445d5f3dab58f27942bdd186b658f
3
+ metadata.gz: fa90ceaa3413fb8f1eff246593217cb54a380e8e6fb5b06ee31b1bdd2cf07ac1
4
+ data.tar.gz: f5e889db45c50e4a2a640f23998d12b615e31f1619bec7618ff92ff002fea366
5
5
  SHA512:
6
- metadata.gz: 66fd1b30d426356b447888a9a207239213c29bcd178126f6dc1751ed9a494cd304047cc4e42db2899e4784547732f8f2af85191d270691235a824b7c11b28e1e
7
- data.tar.gz: 48d3094905367f87c57bace46c22b321c573658eb452d73ba6ca074fa5b47195e8113eab397c16d18bd04ad01856150e0dddb1f8856b2159139d696c26a0ad2b
6
+ metadata.gz: f0446a42158a50ae996d0b3d9a551c711c320e485a43e3696ee5ba442b9d8aba8108e6917086707c0bd699b0f6b088f29d9e3e9795af510102a6b89d7acc1273
7
+ data.tar.gz: 0f83a1f14e3083d918a062fcb8220161815e7e1a6dd2de336f7fc5e47f71a8ecae1c1e5c8860aadb398641f735c4e03211ea1d11d7bc4ae055e1f9c7f17c68f7
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ItemModels
4
- VERSION = '0.0.8'
4
+ VERSION = '0.0.13'
5
5
  end
@@ -10,4 +10,7 @@ class ItemListing < ItemApplicationRecord
10
10
  has_many :item_listing_variant_custom_fields, foreign_key: :channel_association_id
11
11
  has_many :item_listing_custom_fields, foreign_key: :channel_association_id
12
12
  has_many :item_listing_variant_images, foreign_key: :channel_association_id
13
+ has_one :category,
14
+ dependent: :destroy,
15
+ autosave: true
13
16
  end
@@ -4,7 +4,9 @@ class VariantListing < ItemApplicationRecord
4
4
  self.table_name = 'item_channel_association_variant_associations'
5
5
 
6
6
  belongs_to :variant
7
- belongs_to :item_listing
8
- has_many :variant_listing_stock_allocations, foreign_key: :variant_association_id
7
+ belongs_to :item_listing, foreign_key: :channel_association_id
8
+ has_one :variant_listing_stock_allocation,
9
+ class_name: 'VariantListingStockAllocation',
10
+ foreign_key: :variant_association_id
9
11
  has_many :variant_listing_price_histories, foreign_key: :variant_association_id
10
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: item_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - alexander
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-24 00:00:00.000000000 Z
11
+ date: 2021-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -55,7 +55,6 @@ dependencies:
55
55
  description:
56
56
  email:
57
57
  - alxibra@gmail.com
58
- - ivanderkevin@gmail.com
59
58
  executables: []
60
59
  extensions: []
61
60
  extra_rdoc_files: []