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