Sha256: 5230435713142a114a0f2ad2a5d993df27867cfd207e6f07458a6fbd92cb9dd8

Contents?: true

Size: 485 Bytes

Versions: 7

Compression:

Stored size: 485 Bytes

Contents

require_dependency "phcpresspro/application_controller"

module Phcpresspro
  class Frontend::ArticlesController < ApplicationController
  
    # Security & Filters
    layout '/layouts/phcpresspro/frontend.html.erb'
    
    # Article Index
    def index
      @articles_index = Articles::Post.where(pststatus: "published")
    end
    
    # Single Article Post
    def show
      @articles_single = Articles::Post.where(pststatus: "published").find(params[:id])
    end
  
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
phcpresspro-10.0.0 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-9.1.3 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-9.1.2 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-9.1.1 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-9.1.0 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-9.0.0 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-8.0.6 app/controllers/phcpresspro/frontend/articles_controller.rb