phcdevworks_press 7.1.4 → 7.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcdevworks_press/blog/articles_controller.rb +21 -16
- data/app/controllers/phcdevworks_press/blog/lists_controller.rb +29 -0
- data/app/controllers/phcdevworks_press/blog/reviews_controller.rb +29 -0
- data/app/controllers/phcdevworks_press/list/posts_controller.rb +1 -1
- data/app/controllers/phcdevworks_press/review/posts_controller.rb +1 -1
- data/lib/phcdevworks_press/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26501db59a8475bbc5e55f97e4bc9cc6017ab3bb7e66d44699241201c0e53652
|
4
|
+
data.tar.gz: ff3b88d4ec2da3e443ceb8067cc2afc23b8ec346c19a3f09d2b98478288d9856
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 025ebcae717f624c856dd68c8dd2c804694626cd2118d7cf0eec1f83135b850024103b66033f97bd42d3f2f28e755a97a90bd147f3444cc6b5598d832f0d8fd4
|
7
|
+
data.tar.gz: 7fbfd13ab483761d7360bba7369956aa315963a8dbf72405ed53751528755deccb2665e61222c2572218efe07e2fb01408a8da4b29e89b5099707c30fee554d5
|
@@ -1,24 +1,29 @@
|
|
1
1
|
require_dependency "phcdevworks_press/application_controller"
|
2
2
|
|
3
3
|
module PhcdevworksPress
|
4
|
-
|
4
|
+
class Blog::ArticlesController < ApplicationController
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
# Filters
|
7
|
+
before_action :phc_blog_index_all
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
@phcdevworks_cms_press_article_index = Article::Post.where(article_post_status: "published").order("created_at DESC")
|
12
|
-
@phcdevworks_cms_press_list_index = List::Post.where(list_post_status: "published").order("created_at DESC")
|
13
|
-
@phcdevworks_cms_press_review_index = Review::Post.where(review_post_status: "published").order("created_at DESC")
|
14
|
-
end
|
9
|
+
# Layout
|
10
|
+
layout "phcdevworks_press/frontend"
|
15
11
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
12
|
+
# INDEX
|
13
|
+
def index
|
14
|
+
end
|
15
|
+
|
16
|
+
# SHOW
|
17
|
+
def show
|
18
|
+
@phcdevworks_cms_press_article_single = Article::Post.friendly.find(params[:id])
|
19
|
+
end
|
22
20
|
|
23
|
-
|
21
|
+
# Index All for Blog
|
22
|
+
def phc_blog_index_all
|
23
|
+
@phcdevworks_cms_press_article_index = Article::Post.where(article_post_status: "published").order("created_at DESC")
|
24
|
+
@phcdevworks_cms_press_list_index = List::Post.where(list_post_status: "published").order("created_at DESC")
|
25
|
+
@phcdevworks_cms_press_review_index = Review::Post.where(review_post_status: "published").order("created_at DESC")
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
24
29
|
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require_dependency "phcdevworks_press/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksPress
|
4
|
+
class Blog::ListsController < ApplicationController
|
5
|
+
|
6
|
+
# Filters
|
7
|
+
before_action :phc_blog_index_all
|
8
|
+
|
9
|
+
# Layout
|
10
|
+
layout "phcdevworks_press/frontend"
|
11
|
+
|
12
|
+
# INDEX
|
13
|
+
def index
|
14
|
+
end
|
15
|
+
|
16
|
+
# SHOW
|
17
|
+
def show
|
18
|
+
@phcdevworks_cms_press_list_single = List::Post.friendly.find(params[:id])
|
19
|
+
end
|
20
|
+
|
21
|
+
# Index All for Blog
|
22
|
+
def phc_blog_index_all
|
23
|
+
@phcdevworks_cms_press_article_index = Article::Post.where(article_post_status: "published").order("created_at DESC")
|
24
|
+
@phcdevworks_cms_press_list_index = List::Post.where(list_post_status: "published").order("created_at DESC")
|
25
|
+
@phcdevworks_cms_press_review_index = Review::Post.where(review_post_status: "published").order("created_at DESC")
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require_dependency "phcdevworks_press/application_controller"
|
2
|
+
|
3
|
+
module PhcdevworksPress
|
4
|
+
class Blog::ReviewsController < ApplicationController
|
5
|
+
|
6
|
+
# Filters
|
7
|
+
before_action :phc_blog_index_all
|
8
|
+
|
9
|
+
# Layout
|
10
|
+
layout "phcdevworks_press/frontend"
|
11
|
+
|
12
|
+
# INDEX
|
13
|
+
def index
|
14
|
+
end
|
15
|
+
|
16
|
+
# SHOW
|
17
|
+
def show
|
18
|
+
@phcdevworks_cms_press_review_single = Review::Post.friendly.find(params[:id])
|
19
|
+
end
|
20
|
+
|
21
|
+
# Index All for Blog
|
22
|
+
def phc_blog_index_all
|
23
|
+
@phcdevworks_cms_press_article_index = Article::Post.where(article_post_status: "published").order("created_at DESC")
|
24
|
+
@phcdevworks_cms_press_list_index = List::Post.where(list_post_status: "published").order("created_at DESC")
|
25
|
+
@phcdevworks_cms_press_review_index = Review::Post.where(review_post_status: "published").order("created_at DESC")
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
@@ -75,7 +75,7 @@ module PhcdevworksPress
|
|
75
75
|
|
76
76
|
# Whitelist
|
77
77
|
def list_post_params
|
78
|
-
params.require(:list_post).permit(:list_post_title, :list_post_text, :list_post_status, :slug, :optimization_id, :org_id, :user_id, category_ids: [])
|
78
|
+
params.require(:list_post).permit(:list_post_title, :list_post_text, :list_post_status, :list_post_image, :slug, :optimization_id, :org_id, :user_id, category_ids: [])
|
79
79
|
end
|
80
80
|
|
81
81
|
end
|
@@ -75,7 +75,7 @@ module PhcdevworksPress
|
|
75
75
|
|
76
76
|
# Whitelist
|
77
77
|
def review_post_params
|
78
|
-
params.require(:review_post).permit(:review_post_title, :review_post_text, :review_post_status, :review_post_rating, :slug, :optimization_id, :org_id, :user_id, category_ids: [])
|
78
|
+
params.require(:review_post).permit(:review_post_title, :review_post_text, :review_post_status, :review_post_rating, :review_post_image, :slug, :optimization_id, :org_id, :user_id, category_ids: [])
|
79
79
|
end
|
80
80
|
|
81
81
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcdevworks_press
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.1.
|
4
|
+
version: 7.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PHCDevworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -296,6 +296,8 @@ files:
|
|
296
296
|
- app/controllers/phcdevworks_press/application_controller.rb
|
297
297
|
- app/controllers/phcdevworks_press/article/posts_controller.rb
|
298
298
|
- app/controllers/phcdevworks_press/blog/articles_controller.rb
|
299
|
+
- app/controllers/phcdevworks_press/blog/lists_controller.rb
|
300
|
+
- app/controllers/phcdevworks_press/blog/reviews_controller.rb
|
299
301
|
- app/controllers/phcdevworks_press/list/items_controller.rb
|
300
302
|
- app/controllers/phcdevworks_press/list/posts_controller.rb
|
301
303
|
- app/controllers/phcdevworks_press/review/posts_controller.rb
|