item_models 0.0.10 → 0.0.11

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: 3265a94cc636ff0dbddf6cd533ad05963cffe2bbba605848f8d9433bd6b24f49
4
- data.tar.gz: b939eb44738a59832607178acdba1bc3703d1c684b9faeb7fa781cf8ca886ad6
3
+ metadata.gz: f693d4cd79e19839ddfa472dfb04843fbb26cf18a2c216989db9fa993ca0cf61
4
+ data.tar.gz: d2e6998910f7426aee40aba831c9b3bffd42e25efc882d77d358eca1bd83259a
5
5
  SHA512:
6
- metadata.gz: 161cb85fbf083679c0d6c7d7934d0b59a6df1347ac7972d51b2a4b07301cfb01a7c9af84d1b68842bc5d1fccdd774c17af257ae80e2fb51a83f4222e72d27600
7
- data.tar.gz: 2c0b26a18b83a1e871453ef8678d52aa7d2b3a5fed3db98812f2259c8b30e838249ff341e84ad60625ea004e6aed6dd3786514641b00b4453e9cfa2f482f9994
6
+ metadata.gz: d3f6a968a807347065fecdcdda9030e7e9ecd2b248dcaed57529652580cf5db4f21c289f95fd78fd1cfe7e382dd5e5c9ff8937280bca24529cff500832792b5f
7
+ data.tar.gz: f4a876b2edf3f8bdef526852609acc47017cc892fd4f27d5fccd1f3628cf3f24f9da31e7f0112894bdff47e0e90fc472110164eaf57eca820aade56e2dec5a4b
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ItemModels
4
- VERSION = '0.0.10'
4
+ VERSION = '0.0.11'
5
5
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Activity < ItemAplicationRecord
3
+ class Activity < ItemApplicationRecord
4
4
  self.table_name = 'item_activities'
5
5
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class AvailabilityOption < ItemAplicationRecord
3
+ class AvailabilityOption < ItemApplicationRecord
4
4
  self.table_name = 'item_availability_options'
5
5
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class Bundle < ItemAplicationRecord
3
+ class Bundle < ItemApplicationRecord
4
4
  self.table_name = 'item_bundles'
5
5
 
6
6
  belongs_to :variant
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class ItemAplicationRecord < ActiveRecord::Base
3
+ class ItemApplicationRecord < ActiveRecord::Base
4
4
  self.abstract_class = true
5
5
  connects_to database: { writing: :item_model, reading: :item_model }
6
6
  end
@@ -5,6 +5,8 @@ class VariantListing < ItemApplicationRecord
5
5
 
6
6
  belongs_to :variant
7
7
  belongs_to :item_listing
8
- has_one :variant_listing_stock_allocation, foreign_key: :variant_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.10
4
+ version: 0.0.11
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-25 00:00:00.000000000 Z
11
+ date: 2020-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler