caboose-cms 0.5.51 → 0.5.52
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
|
-
|
4
|
+
NzA0MzEzM2FiOGMxODNiOTVmNTE1YmZlMjc1MTZhNzM5YTRjMzM0OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjdhMGE0YjI0NTEzOTYyMTM5MTc0MDFjN2ZlNzc2NWI5YzQwMzkzNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2M4YzIzMDc0NzYxYzA5ZTQwMGI4YjdlYmY1ZTNiYzFkZGNjNzgzODZkNzlh
|
10
|
+
YWM3ZjcwYTU5MzBiNjc3YjY0NTkxZmIwZjYyMDg2OGY3ZjcwMzVmM2Y0ZTU4
|
11
|
+
YTI2ZGE1YjhiNWMxN2JmYzhmZDgxMjVjNDNiNDY5NzcxNjYzOTc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDc4Yzc1Mzg1NTRhYjBmMjExOWQ2MjlmNGI5MDY2NDVmYTVlYjAxMWJmYjdm
|
14
|
+
MmRkMWRlNzE3MjhkYWJkZGMyYmZiNDBhNDRmNzRiNzY4YmY1ZDEzNTE1MmRi
|
15
|
+
NDIwODJkYzA1OTM3NzhjZTgwNmZkZjQ5ZDVkOTYwZWRjNDliZTA=
|
@@ -8,6 +8,11 @@ module Caboose
|
|
8
8
|
# GET /admin/categories
|
9
9
|
def admin_index
|
10
10
|
return unless user_is_allowed('categories', 'view')
|
11
|
+
|
12
|
+
@top_cat = Caboose::Category.where("site_id = ? and parent_id is null", @site.id).first
|
13
|
+
if @top_cat.nil?
|
14
|
+
@top_cat = Caboose::Category.create(:site_id => @site.id, :name => 'All Products', :url => '/')
|
15
|
+
end
|
11
16
|
render :layout => 'caboose/admin'
|
12
17
|
end
|
13
18
|
|
data/lib/caboose/version.rb
CHANGED