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