Sha256: e3eb26e68ec095621031972b7e48d0f51ee964f8fb088d9e1a9f6d22918bbc22

Contents?: true

Size: 451 Bytes

Versions: 4

Compression:

Stored size: 451 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

4 entries across 4 versions & 1 rubygems

Version Path
phcpresspro-6.7.7 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-6.7.6 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-6.7.5 app/controllers/phcpresspro/frontend/articles_controller.rb
phcpresspro-6.7.1 app/controllers/phcpresspro/frontend/articles_controller.rb