camaleon_cms 2.4.3.3 → 2.4.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef14e6c2e84d8b87a942363def36028d2044fecd
|
|
4
|
+
data.tar.gz: e85bee1543c390acea7d4ba6bdc6cae8281c9256
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c0494302e7e3f8c93e3c0ba263bef1a73e979db5b3974a11f1197bcb08e8328d0db403b20537e491453d74af7003ca01bc46cfd36078dea611cb3ff46f1f09b
|
|
7
|
+
data.tar.gz: c59fc222657ca3a7d6bef973ee7982e8a316ee59e8f0468abf1e7ab40cb095160436ee6fbbd770495c9c8f9e4387c91675896d4a64d291d697f9af5b947979f6
|
data/README.md
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* Add the gem in your Gemfile
|
|
40
40
|
|
|
41
41
|
```
|
|
42
|
-
gem "camaleon_cms", '>= 2.4.3.
|
|
42
|
+
gem "camaleon_cms", '>= 2.4.3.4' # Stable versions 2.3.6, 2.2.1, 2.1.1, 2.1.0
|
|
43
43
|
# gem "camaleon_cms", github: 'owen2345/camaleon-cms' # current development version
|
|
44
44
|
```
|
|
45
45
|
* Only Rails 5 support
|
|
@@ -52,6 +52,10 @@
|
|
|
52
52
|
```
|
|
53
53
|
gem 'sass-rails', '~> 5.0'
|
|
54
54
|
```
|
|
55
|
+
Add this configuration to your config/application.rb
|
|
56
|
+
```
|
|
57
|
+
config.active_record.belongs_to_required_by_default = false
|
|
58
|
+
```
|
|
55
59
|
|
|
56
60
|
* Install required Gem and dependencies
|
|
57
61
|
|
|
@@ -13,7 +13,6 @@ class CamaleonCms::TermRelationship < ActiveRecord::Base
|
|
|
13
13
|
# update counter of post published items
|
|
14
14
|
# TODO verify counter
|
|
15
15
|
def update_count
|
|
16
|
-
self.term_taxonomies.update_column('count', self.term_taxonomies.posts.published.size) if self.term_taxonomies.present?
|
|
16
|
+
self.term_taxonomies.update_column('count', self.term_taxonomies.posts.published.size) if self.term_taxonomies.present? && !self.term_taxonomies.try(:posts).nil?
|
|
17
17
|
end
|
|
18
|
-
|
|
19
|
-
end
|
|
18
|
+
end
|
|
@@ -23,7 +23,7 @@ class CamaleonCms::TermTaxonomy < ActiveRecord::Base
|
|
|
23
23
|
|
|
24
24
|
# relations
|
|
25
25
|
has_many :term_relationships, :class_name => "CamaleonCms::TermRelationship", :foreign_key => :term_taxonomy_id, dependent: :destroy
|
|
26
|
-
has_many :posts, foreign_key: :objectid, through: :term_relationships, :source => :objects
|
|
26
|
+
# has_many :posts, foreign_key: :objectid, through: :term_relationships, :source => :objects
|
|
27
27
|
belongs_to :parent, class_name: "CamaleonCms::TermTaxonomy", foreign_key: :parent_id
|
|
28
28
|
belongs_to :owner, class_name: PluginRoutes.static_system_info['user_model'].presence || 'CamaleonCms::User', foreign_key: :user_id
|
|
29
29
|
|
data/config/routes/frontend.rb
CHANGED
|
@@ -13,6 +13,7 @@ Rails.application.routes.draw do
|
|
|
13
13
|
root 'camaleon_cms/frontend#index', as: 'root'
|
|
14
14
|
|
|
15
15
|
controller "camaleon_cms/frontend" do
|
|
16
|
+
get :index
|
|
16
17
|
get ":label/:post_type_id-:title" => :post_type, as: "post_type", constraints: {post_type_id: /[0-9]+/, label: /(#{PluginRoutes.all_translations('routes.group', default: 'group').join('|')})/}
|
|
17
18
|
get ":label/:post_type_id-:title/:slug" => :post, as: "post_of_post_type", constraints: {post_type_id: /[0-9]+/, label: /(#{PluginRoutes.all_translations('routes.group', default: 'group').join('|')})/}
|
|
18
19
|
get ":label/:category_id-:title" => :category, as: "category", constraints: {category_id: /[0-9]+/, label: /(#{PluginRoutes.all_translations('routes.category', default: 'category').join('|')})/}
|
data/lib/camaleon_cms/engine.rb
CHANGED
data/lib/camaleon_cms/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: camaleon_cms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.4.3.
|
|
4
|
+
version: 2.4.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Owen Peredo Diaz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-04-
|
|
11
|
+
date: 2017-04-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bcrypt
|