Sha256: 8e70e8a6b5a3af2381de48bf18c3098f4a1d5fcf6a73aefea2a8f8994dc83c69

Contents?: true

Size: 915 Bytes

Versions: 18

Compression:

Stored size: 915 Bytes

Contents

require_dependency "phcdevworks_press/application_controller"

module PhcdevworksPress
    class Blog::ReviewsController < ApplicationController

        # Filters
        before_action :phc_blog_index_all

        # Layout
        layout "phcdevworks_press/frontend"

        # INDEX
        def index
        end

        # SHOW
        def show
            @phcdevworks_cms_press_review_single = Review::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

18 entries across 18 versions & 1 rubygems

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