phcdevworks_press 7.1.6 → 7.1.7

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
  SHA256:
3
- metadata.gz: e549a55b9e83d22b8cb8706d5c240fc2b92d8e269f98b33e25981e7c0c66aaa7
4
- data.tar.gz: 730b9ed75d5c891c3c9389800e5d18bd26cabbf6649a607806e8543cecb49ffb
3
+ metadata.gz: c7a75ef1590d8613834f57427b9b0f92b832a45accb31463478a6283afcdc001
4
+ data.tar.gz: 978d322ab7297aff38649c803384de2e5b2fd3e8e2386ba22918a3d01fe4af4c
5
5
  SHA512:
6
- metadata.gz: a75bbfd3847c0470144f92d221802f43bf39dcd292b3046d1dff9e5feabbba1a5ec28b34cb92d3ca728480aadd43314e651a0f2d2d758b64ad0095feab8f0a88
7
- data.tar.gz: 469247e142152b710d168620b9e6288d463afa8d056ac7592dcd96378f8ef6d956871a85b253a9b3d64c424942d1917cc88b173dc1addfeea87aee7e103251c2
6
+ metadata.gz: b08083c20bf97c8c7f2133553148c0a5482b4403a6600547b7fbcb170f8bdb779f6d6426a485629e352ce20040cb6dee27c809c45e0c8120758ee1e4d4b46d9e
7
+ data.tar.gz: 5d1a015617d5af64cef35e666da9f1e036b068949833f01b69469c7d436a5b0e5456c384c318b8c383ec935f2a48f7435e3f1be078ce47bd40d0a8140cf2f9bb
@@ -1,20 +1,29 @@
1
1
  require_dependency "phcdevworks_press/application_controller"
2
2
 
3
3
  module PhcdevworksPress
4
- class Blog::ArticlesController < ApplicationController
4
+ class Blog::ListsController < ApplicationController
5
5
 
6
- # Layout
7
- layout "phcdevworks_press/frontend"
6
+ # Filters
7
+ before_action :phc_blog_index_all
8
8
 
9
- # INDEX
10
- def index
11
- @phcdevworks_cms_press_article_index = Article::Post.where(article_post_status: "published").order("created_at DESC")
12
- end
9
+ # Layout
10
+ layout "phcdevworks_press/frontend"
13
11
 
14
- # SHOW
15
- def show
16
- @phcdevworks_cms_press_article_single = Article::Post.friendly.find(params[:id])
17
- end
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
18
20
 
19
- end
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
20
29
  end
@@ -1,20 +1,29 @@
1
1
  require_dependency "phcdevworks_press/application_controller"
2
2
 
3
3
  module PhcdevworksPress
4
- class Blog::ListsController < ApplicationController
4
+ class Blog::ListsController < ApplicationController
5
5
 
6
- # Layout
7
- layout "phcdevworks_press/frontend"
6
+ # Filters
7
+ before_action :phc_blog_index_all
8
8
 
9
- # INDEX
10
- def index
11
- @phcdevworks_cms_press_list_index = List::Post.where(list_post_status: "published").order("created_at DESC")
12
- end
9
+ # Layout
10
+ layout "phcdevworks_press/frontend"
13
11
 
14
- # SHOW
15
- def show
16
- @phcdevworks_cms_press_list_single = List::Post.friendly.find(params[:id])
17
- end
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
18
20
 
19
- end
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
20
29
  end
@@ -1,20 +1,29 @@
1
1
  require_dependency "phcdevworks_press/application_controller"
2
2
 
3
3
  module PhcdevworksPress
4
- class Blog::ReviewsController < ApplicationController
4
+ class Blog::ReviewsController < ApplicationController
5
5
 
6
- # Layout
7
- layout "phcdevworks_press/frontend"
6
+ # Filters
7
+ before_action :phc_blog_index_all
8
8
 
9
- # INDEX
10
- def index
11
- @phcdevworks_cms_press_review_index = Review::Post.where(review_post_status: "published").order("created_at DESC")
12
- end
9
+ # Layout
10
+ layout "phcdevworks_press/frontend"
13
11
 
14
- # SHOW
15
- def show
16
- @phcdevworks_cms_press_review_single = Review::Post.friendly.find(params[:id])
17
- end
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
18
20
 
19
- end
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
20
29
  end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksPress
2
- VERSION = "7.1.6"
2
+ VERSION = "7.1.7"
3
3
  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.6
4
+ version: 7.1.7
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-02 00:00:00.000000000 Z
11
+ date: 2020-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails