item_models 0.0.5 → 0.0.10

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: f565b257cc89b0c61bd0f16d99fc725fb470799efec0954fee305c97542976b3
4
- data.tar.gz: b6a3438e1075451fd8db797ea052047670e342038fe6ca453f8e54ebd5f72ea9
3
+ metadata.gz: 3265a94cc636ff0dbddf6cd533ad05963cffe2bbba605848f8d9433bd6b24f49
4
+ data.tar.gz: b939eb44738a59832607178acdba1bc3703d1c684b9faeb7fa781cf8ca886ad6
5
5
  SHA512:
6
- metadata.gz: 204298e1c8d5b5c56cddde9d5852b071c141f07df020166d058399047df0fd005657514ddf4b93d9174ef304c074e0e2eb2dc5badead250b8e2dee70cd4d2ba3
7
- data.tar.gz: ae208fb36cca5b33e51d14c12ea5e2a274a7a7a1b5aec3a2c441e4273c1d8ad8f4b4d972c53596848a6c3da30bc930d4ebd08fd4b1f81e7b4b983a830dc864ff
6
+ metadata.gz: 161cb85fbf083679c0d6c7d7934d0b59a6df1347ac7972d51b2a4b07301cfb01a7c9af84d1b68842bc5d1fccdd774c17af257ae80e2fb51a83f4222e72d27600
7
+ data.tar.gz: 2c0b26a18b83a1e871453ef8678d52aa7d2b3a5fed3db98812f2259c8b30e838249ff341e84ad60625ea004e6aed6dd3786514641b00b4453e9cfa2f482f9994
@@ -6,6 +6,7 @@ module ItemModels
6
6
  class Error < StandardError; end
7
7
  # Your code goes here...
8
8
  def self.load
9
+ require directory + '/lib/models/item_application_record'
9
10
  files.each {|file| require file }
10
11
  end
11
12
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ItemModels
4
- VERSION = '0.0.5'
4
+ VERSION = '0.0.10'
5
5
  end
@@ -5,6 +5,6 @@ class VariantListing < ItemApplicationRecord
5
5
 
6
6
  belongs_to :variant
7
7
  belongs_to :item_listing
8
- has_many :variant_listing_stock_allocations, foreign_key: :variant_association_id
8
+ has_one :variant_listing_stock_allocation, foreign_key: :variant_association_id
9
9
  has_many :variant_listing_price_histories, foreign_key: :variant_association_id
10
10
  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.5
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - alexander
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-11 00:00:00.000000000 Z
11
+ date: 2020-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler