caboose-cms 0.9.17 → 0.9.18

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
  SHA1:
3
- metadata.gz: 0460458a16ead69cecfbc30ba0421e9600dcca83
4
- data.tar.gz: 8186386ddd66fcd395bb577ba283f4bd4e001020
3
+ metadata.gz: d953f92afcce9ce708c88a5fc9c2ead5d4ce0b54
4
+ data.tar.gz: f9500c0543565b0a5b9150a32e8bf3439999b388
5
5
  SHA512:
6
- metadata.gz: 8a3de896671f33f9f5c930e2d0ec5a6b05de6eda6880a29d9f40ffc91b001df09190a597f6b1680eefd0cad94d34787e48f78c78240e20876f75f99bd5f89d2d
7
- data.tar.gz: 783d23cc8fed612bb3f7292b0a0e6da8b327d9cd0de1aaad4ac68bdf7d45832d07c5b6c2ee24b009ba4e8311f957ca0fda893ee2250242bf538f47182d1928be
6
+ metadata.gz: 4d79ce27a061d76c87ab16a85fd714c696d8ef9d2e76b1fedbc680701ee6d15c7e61689776fd9811b609a0acb48b571d2736ec4fe96b68ea7a8c04a713cc1fc5
7
+ data.tar.gz: 3345b73d589f281a9f46ebd4de5ae3a9faa09daf1d20ac6c309d5153a7f47a81233fd16977c63512cb87807d46b52fd3ef29a34f10c245334df4d14511d0661c
@@ -16,7 +16,7 @@ module Caboose
16
16
  belongs_to :option1_media, :class_name => 'Caboose::Media'
17
17
  belongs_to :option2_media, :class_name => 'Caboose::Media'
18
18
  belongs_to :option3_media, :class_name => 'Caboose::Media'
19
- has_many :variant_children, :class_name => 'Caboose::VariantChild'
19
+ has_many :variant_children, :class_name => 'Caboose::VariantChild', :foreign_key => 'parent_id'
20
20
 
21
21
  attr_accessible :id,
22
22
  :alternate_id,
@@ -2,8 +2,8 @@ module Caboose
2
2
  class VariantChild < ActiveRecord::Base
3
3
  self.table_name = 'store_variant_children'
4
4
 
5
- belongs_to :parent, :class_name => 'Caboose::Variant'
6
- belongs_to :variant, :class_name => 'Caboose::Variant'
5
+ belongs_to :parent , :class_name => 'Caboose::Variant', :foreign_key => 'parent_id'
6
+ belongs_to :variant , :class_name => 'Caboose::Variant', :foreign_key => 'variant_id'
7
7
  attr_accessible :id,
8
8
  :parent_id,
9
9
  :variant_id,
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.17'
2
+ VERSION = '0.9.18'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.17
4
+ version: 0.9.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry