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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4243981635a0d70acfc976d1ab0216a82d3b4c62
4
- data.tar.gz: a3b85a961758f78caca166f00fa75c7c39cf5ba3
3
+ metadata.gz: 114464bfa249ce351c0a6e890748ac8d247a59b2
4
+ data.tar.gz: 1f18915d49ee5b3d2672f97f55855e978692e1b7
5
5
  SHA512:
6
- metadata.gz: 6207886cba7ac460870b993f24f397885958e8ed36a02d6fafde5a94a60ec40d432d8f37c33e62822c5fe5bf23e05f736f3f53cac94d2313e57aec0425190ada
7
- data.tar.gz: 9823c14688c6002a1a551dbb0e945333ee0775c20acc12b2aa923e2984f74c3baa25952745d0e85f42e237a1f236559d390cae3e3b5037d2a8bf49fd255ebf39
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 &Enjoy::Catalog::Admin::ItemCategory.config
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 &Enjoy::Catalog::Admin::ItemCategoryImage.config
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 &Enjoy::Catalog::Admin::ItemImage.config
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
- # module ClassMethods
31
- # def rails_admin_add_fields
32
- # {}
33
- # end
34
- #
35
- # def rails_admin_add_config(config)
36
- # end
37
- # end
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
- # module ClassMethods
39
- # def rails_admin_add_fields
40
- # {}
41
- # end
42
- #
43
- # def rails_admin_add_config(config)
44
- # end
45
- # end
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
- # module ClassMethods
14
- # def rails_admin_add_fields
15
- # {}
16
- # end
17
- #
18
- # def rails_admin_add_config(config)
19
- # end
20
- # end
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
- # module ClassMethods
14
- # def rails_admin_add_fields
15
- # {}
16
- # end
17
- #
18
- # def rails_admin_add_config(config)
19
- # end
20
- # end
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
@@ -1,5 +1,5 @@
1
1
  module Enjoy
2
2
  module Catalog
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enjoy_cms_catalog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kiseliev