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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmU1MjAyN2Y0NGRhODA2ZTcyYTg2ZjBmYWY1NjkzOGVhNmFhNTQxYQ==
4
+ Y2Y1OWJiMzc0ZWRjNWExMGRkMWE3ZDEyYmJiYzhkZmZjZDU4MTE1Nw==
5
5
  data.tar.gz: !binary |-
6
- NTdkNTllYzUzNGQxZTg2YTE0N2FjYzI1Y2UxYWE2MzM4YmRkZjgxMQ==
6
+ OWI4YjQxNDMyNDMzNzJlMTZjMzJlYjQ4ZDVkZmUwY2MyNjRhODZhZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzQ1M2ZiNjQwNzljNDlkYmU1MjFiYjAwN2M0NmQ2MWY0ODdlOGY5Nzc5ZWI1
10
- MjA1ZmMzNGZiZGFkNjQ1ZDY3ZWJjZDdhYmU0NzQyZjk2NDJmNmE5MTQ5M2M3
11
- NDFiZjE3NGQ5Njk0NThhOWQwODgzYjliMzg3ZDYzMjU2OTZjOTQ=
9
+ YTliMTNhNTRlYmNiNzk5NWIxZjU5ZWM5NmFmZmExODExNDgyYWI1MTFlODVm
10
+ NmY4ZWZiMjdkODEwODUwZGFiM2VjNWY4MmIzMTdhZTU2ZDQyMWM5YmFkOGJi
11
+ NjI1MTU0NDdiNDE3NDhiMDM3MWI4MTM2ZjZkMWQ0MGQwNWVhZWY=
12
12
  data.tar.gz: !binary |-
13
- ZTU3ZWM0OTMxNzE1YWFjZmEzNzkyZDI5MmFlNDE5NmI5MmYyNjhjZjAyYzYx
14
- ZGFkODIyYjZhNDA2MmE3Y2M1ZTQ2NTY3NTA2YTQyNTg2ODEzNzdkZTE4MjA0
15
- MzUxNWMwNzlkMGFkMTNiZGQ0ZWVjZjlhMjQ3MmJkYjQwMzA0NTA=
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)
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.120'
2
+ VERSION = '0.5.121'
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.5.120
4
+ version: 0.5.121
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry