Sha256: 23424caf390d9e26b0922f42cf92f25b51426fc37622e5daceb9547a2d9a3641
Contents?: true
Size: 915 Bytes
Versions: 1
Compression:
Stored size: 915 Bytes
Contents
require_dependency "phcdevworks_press/application_controller" module PhcdevworksPress class Blog::ListsController < 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phcdevworks_press-7.1.7 | app/controllers/phcdevworks_press/blog/articles_controller.rb |