enjoy_cms_catalog 0.3.3 → 0.3.4

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: 5dcc9e6dfe4bfb5b628d62e0a3d674ae894ecc02
4
- data.tar.gz: 4df60483663fa45698f4565ac340e5784421f67d
3
+ metadata.gz: b1e8327ef229c0b25ddea63ef933783c1d10648c
4
+ data.tar.gz: 47d6cb35664902671b67c71efe2350a85de68766
5
5
  SHA512:
6
- metadata.gz: 7f854240f5feb44f8fa235874c06bfec9d7d7820792aa3f7be35a7ffb716998520503d14625144b41c31854ed6a14ac18828fe243752ed4390cb565e18854b63
7
- data.tar.gz: 73199aff546f1a80c32a75e9248e0a0c181e0a4f144c6170d6b27cc05f94e7617a2fe9c52c6661fee822e8b415bb21999490cdf0fd45d8ef2b009ac2a65a88ab
6
+ metadata.gz: b9d8811cb17691cf9fdf50c1833e17eab32439ee4cb4812aa8999cc71df9053ab6685a449b70d301f9f3d3677d882453ac595c537cf1a8dd18649db9e646342d
7
+ data.tar.gz: b07fec3e354c84e7e29671c14cf0d875a390ca82cf25aa0a6c8a7fdb6771605d6bdfc577dc60709e402305f24a61d2e830e04120cc06891e1f05ccd15e67fbba
@@ -34,5 +34,5 @@ Gem::Specification.new do |spec|
34
34
  spec.add_dependency 'money-rails'
35
35
  spec.add_dependency 'mongoid_money_field'
36
36
 
37
- spec.add_dependency 'enjoy_cms', "~> 0.3.3"
37
+ spec.add_dependency 'enjoy_cms', "~> 0.3.4"
38
38
  end
@@ -10,12 +10,14 @@ module Enjoy::Catalog
10
10
  field :name
11
11
  field :price
12
12
  field :item_categories
13
+ field :connected_pages, :enjoy_connectable
13
14
  field :image
14
15
  end
15
16
 
16
17
  edit do
17
18
  field :enabled, :toggle
18
19
  field :name
20
+ field :connected_pages, :enjoy_connectable
19
21
  field :item_categories
20
22
 
21
23
  group :URL do
@@ -10,6 +10,7 @@ module Enjoy::Catalog
10
10
  field :enabled, :toggle
11
11
  field :name
12
12
  field :image
13
+ field :connected_pages, :enjoy_connectable
13
14
 
14
15
  field :items do
15
16
  read_only true
@@ -27,6 +28,7 @@ module Enjoy::Catalog
27
28
  edit do
28
29
  field :enabled, :toggle
29
30
  field :name
31
+ field :connected_pages, :enjoy_connectable
30
32
  group :URL do
31
33
  active false
32
34
  field :slugs, :enum do
@@ -6,6 +6,7 @@ module Enjoy::Catalog
6
6
  include Enjoy::Enableable
7
7
  include Enjoy::Seoable
8
8
  include Enjoy::SitemapDataField
9
+ include Enjoy::Connectable
9
10
 
10
11
  include Enjoy::Catalog.orm_specific('Item')
11
12
 
@@ -13,6 +14,8 @@ module Enjoy::Catalog
13
14
 
14
15
  included do
15
16
  manual_slug :name
17
+
18
+ enjoy_connectable_field :connected_pages, routes_namespace: :enjoy_cms_catalog
16
19
  end
17
20
  end
18
21
  end
@@ -6,6 +6,7 @@ module Enjoy::Catalog
6
6
  include Enjoy::Enableable
7
7
  include Enjoy::Seoable
8
8
  include Enjoy::SitemapDataField
9
+ include Enjoy::Connectable
9
10
 
10
11
  include Enjoy::Catalog.orm_specific('ItemCategory')
11
12
 
@@ -13,6 +14,8 @@ module Enjoy::Catalog
13
14
 
14
15
  included do
15
16
  manual_slug :name
17
+
18
+ enjoy_connectable_field :connected_pages, routes_namespace: :enjoy_cms_catalog
16
19
  end
17
20
 
18
21
  def item_class
@@ -1,5 +1,5 @@
1
1
  module Enjoy
2
2
  module Catalog
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
@@ -17,6 +17,11 @@ class <%= camelcased_class_name %> < Enjoy::Catalog::Item
17
17
  {}
18
18
  end
19
19
 
20
+
21
+ def routes_namespace
22
+ :main_app # or nil
23
+ end
24
+
20
25
 
21
26
  ############# rails_admin ##############
22
27
  def self.rails_admin_add_fields
@@ -14,6 +14,9 @@ class <%= camelcased_class_name %> < Enjoy::Catalog::ItemCategory
14
14
  def item_class
15
15
  <%= item_class_name %>
16
16
  end
17
+ def routes_namespace
18
+ :main_app # or nil
19
+ end
17
20
 
18
21
 
19
22
  ############# rails_admin ##############
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enjoy_cms_catalog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kiseliev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-03 00:00:00.000000000 Z
11
+ date: 2016-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.3.3
75
+ version: 0.3.4
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.3.3
82
+ version: 0.3.4
83
83
  description: Items catalog with EnjoyCMS support.
84
84
  email:
85
85
  - dev@enjoycreate.ru