enjoy_cms_catalog 0.2.0 → 0.2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/enjoy/catalog/item_category.rb +3 -1
- data/app/models/enjoy/catalog/item_category_image.rb +3 -1
- data/app/models/enjoy/catalog/item_image.rb +3 -1
- data/lib/enjoy/catalog/models/item.rb +8 -8
- data/lib/enjoy/catalog/models/item_category.rb +8 -8
- data/lib/enjoy/catalog/models/item_category_image.rb +8 -8
- data/lib/enjoy/catalog/models/item_image.rb +8 -8
- data/lib/enjoy/catalog/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: 114464bfa249ce351c0a6e890748ac8d247a59b2
|
4
|
+
data.tar.gz: 1f18915d49ee5b3d2672f97f55855e978692e1b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 759949488d235e315a7457807aaf99ce6c651753db138d9eff8a24263b1108ad8c10ed0a7f5a0b8a1aa24a0c67e025d22e8ad00fa4861f54906fca3c3e12b0f3
|
7
|
+
data.tar.gz: 15d6238782d5ca34b5c68d1616ac1010384160bfc053f27ef8926548c6ae55ceea029f1f27d5f21c469d7920f9d359c0d60b3d98af3182ce48e4525d62fd673b
|
@@ -4,6 +4,8 @@ module Enjoy::Catalog
|
|
4
4
|
|
5
5
|
include Enjoy::Catalog::Decorators::ItemCategory
|
6
6
|
|
7
|
-
rails_admin
|
7
|
+
rails_admin(&Enjoy::Catalog::Admin::ItemCategory.config(rails_admin_add_fields) { |config|
|
8
|
+
rails_admin_add_config(config)
|
9
|
+
})
|
8
10
|
end
|
9
11
|
end
|
@@ -4,6 +4,8 @@ module Enjoy::Catalog
|
|
4
4
|
|
5
5
|
include Enjoy::Catalog::Decorators::ItemCategoryImage
|
6
6
|
|
7
|
-
rails_admin
|
7
|
+
rails_admin(&Enjoy::Catalog::Admin::ItemCategoryImage.config(rails_admin_add_fields) { |config|
|
8
|
+
rails_admin_add_config(config)
|
9
|
+
})
|
8
10
|
end
|
9
11
|
end
|
@@ -4,6 +4,8 @@ module Enjoy::Catalog
|
|
4
4
|
|
5
5
|
include Enjoy::Catalog::Decorators::ItemImage
|
6
6
|
|
7
|
-
rails_admin
|
7
|
+
rails_admin(&Enjoy::Catalog::Admin::ItemImage.config(rails_admin_add_fields) { |config|
|
8
|
+
rails_admin_add_config(config)
|
9
|
+
})
|
8
10
|
end
|
9
11
|
end
|
@@ -27,14 +27,14 @@ module Enjoy::Catalog
|
|
27
27
|
Rails::Html::FullSanitizer.new.sanitize(self.content.strip)
|
28
28
|
end
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
30
|
+
module ClassMethods
|
31
|
+
def rails_admin_add_fields
|
32
|
+
{}
|
33
|
+
end
|
34
|
+
|
35
|
+
def rails_admin_add_config(config)
|
36
|
+
end
|
37
|
+
end
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
@@ -35,14 +35,14 @@ module Enjoy::Catalog
|
|
35
35
|
item_class.any_in(item_category_ids: self.self_and_descendants.map(&:id))
|
36
36
|
end
|
37
37
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
38
|
+
module ClassMethods
|
39
|
+
def rails_admin_add_fields
|
40
|
+
{}
|
41
|
+
end
|
42
|
+
|
43
|
+
def rails_admin_add_config(config)
|
44
|
+
end
|
45
|
+
end
|
46
46
|
|
47
47
|
end
|
48
48
|
end
|
@@ -10,14 +10,14 @@ module Enjoy::Catalog
|
|
10
10
|
included do
|
11
11
|
end
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
13
|
+
module ClassMethods
|
14
|
+
def rails_admin_add_fields
|
15
|
+
{}
|
16
|
+
end
|
17
|
+
|
18
|
+
def rails_admin_add_config(config)
|
19
|
+
end
|
20
|
+
end
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
@@ -10,14 +10,14 @@ module Enjoy::Catalog
|
|
10
10
|
included do
|
11
11
|
end
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
13
|
+
module ClassMethods
|
14
|
+
def rails_admin_add_fields
|
15
|
+
{}
|
16
|
+
end
|
17
|
+
|
18
|
+
def rails_admin_add_config(config)
|
19
|
+
end
|
20
|
+
end
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|