Sha256: e2515a4d7e8d2e4b1bb3e4823e48bd26f24df020bb2410aeacefa9922e986d41

Contents?: true

Size: 918 Bytes

Versions: 17

Compression:

Stored size: 918 Bytes

Contents

require_dependency "phcdevworks_press/application_controller"

module PhcdevworksPress
    class Blog::ArticlesController < ApplicationController

        # Filters
        before_action :phc_blog_index_all

        # Layout
        layout "phcdevworks_press/frontend"

        # INDEX
        def index
        end

        # SHOW
        def show
            @phcdevworks_cms_press_article_single = Article::Post.friendly.find(params[:id])
        end

        # Index All for Blog
        def phc_blog_index_all
            @phcdevworks_cms_press_article_index = Article::Post.where(article_post_status: "published").order("created_at DESC")
            @phcdevworks_cms_press_list_index = List::Post.where(list_post_status: "published").order("created_at DESC")
            @phcdevworks_cms_press_review_index = Review::Post.where(review_post_status: "published").order("created_at DESC")
        end

    end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
phcdevworks_press-8.3.1 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-8.3.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-8.2.4 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-8.2.3 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-8.2.2 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-8.2.1 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-8.2.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-8.1.1 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-8.1.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-8.0.2 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-8.0.1 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-8.0.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-7.5.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-7.3.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-7.2.0 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-7.1.9 app/controllers/phcdevworks_press/blog/articles_controller.rb
phcdevworks_press-7.1.8 app/controllers/phcdevworks_press/blog/articles_controller.rb