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 +4 -4
- data/app/models/caboose/variant.rb +1 -1
- data/app/models/caboose/variant_child.rb +2 -2
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d953f92afcce9ce708c88a5fc9c2ead5d4ce0b54
|
4
|
+
data.tar.gz: f9500c0543565b0a5b9150a32e8bf3439999b388
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
data/lib/caboose/version.rb
CHANGED