Sha256: 3a497fbe7bd89cf1ed92285384d4aefc47f25301ee512521e32a33e1f368800a

Contents?: true

Size: 480 Bytes

Versions: 20

Compression:

Stored size: 480 Bytes

Contents

require_dependency "phcpresspro/application_controller"

module Phcpresspro
  class Frontend::ArticleController < ApplicationController

    # Security & Filters
    layout '/layouts/phcpresspro/frontend.html.erb'

    # Article Index
    def index
      @articles_index = Article::Post.where(pststatus: "published")
    end

    # Single Article Post
    def show
      @articles_single = Article::Post.where(pststatus: "published").friendly.find(params[:id])
    end

  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
phcpresspro-21.1.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-21.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-20.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-19.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-18.4.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-18.3.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-18.2.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-18.1.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-18.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-17.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-16.2.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-16.1.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-16.0.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-15.6.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-15.5.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-15.4.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-15.3.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-15.2.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-15.1.0 app/controllers/phcpresspro/frontend/article_controller.rb
phcpresspro-15.0.0 app/controllers/phcpresspro/frontend/article_controller.rb