caboose-cms 0.5.120 → 0.5.121
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/caboose/product.rb +1 -1
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2Y1OWJiMzc0ZWRjNWExMGRkMWE3ZDEyYmJiYzhkZmZjZDU4MTE1Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWI4YjQxNDMyNDMzNzJlMTZjMzJlYjQ4ZDVkZmUwY2MyNjRhODZhZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTliMTNhNTRlYmNiNzk5NWIxZjU5ZWM5NmFmZmExODExNDgyYWI1MTFlODVm
|
10
|
+
NmY4ZWZiMjdkODEwODUwZGFiM2VjNWY4MmIzMTdhZTU2ZDQyMWM5YmFkOGJi
|
11
|
+
NjI1MTU0NDdiNDE3NDhiMDM3MWI4MTM2ZjZkMWQ0MGQwNWVhZWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGRjMGEyNWI5YzkwMGQ1MjI5YTc0ZWI0ODA5MDQ2OTAyYzNkMTMzOTY4ZTQ5
|
14
|
+
ODEyNzNlZDQ4MjQxYmI4ZGZkZWMxZjBiMDhmYzIyMjBlYTIwNmI2ZGI5OGVi
|
15
|
+
NDAwYTNlMjE5ZmNlMzlmODZiNmUwNzc0YWE2OWJhYzdiZjZjOTc=
|
@@ -156,7 +156,7 @@ module Caboose
|
|
156
156
|
if value.to_i > 0 # Add to category
|
157
157
|
if cat_id == 'all'
|
158
158
|
CategoryMembership.where(:product_id => self.id).destroy_all
|
159
|
-
Category.reorder(:name).all.each{ |cat| CategoryMembership.create(:product_id => self.id, :category_id => cat.id) }
|
159
|
+
Category.where(:site_id => self.site_id).reorder(:name).all.each{ |cat| CategoryMembership.create(:product_id => self.id, :category_id => cat.id) }
|
160
160
|
else
|
161
161
|
if !CategoryMembership.where(:product_id => self.id, :category_id => cat_id.to_i).exists?
|
162
162
|
CategoryMembership.create(:product_id => self.id, :category_id => cat_id.to_i)
|
data/lib/caboose/version.rb
CHANGED