Sha256: 76a88f97895dd4ecf066fe7afbf1ec0ed81ab08ec14741c4741f862237e19d1e

Contents?: true

Size: 468 Bytes

Versions: 1

Compression:

Stored size: 468 Bytes

Contents

require_dependency "phcdevworks_press/application_controller"

module PhcdevworksPress
  class Blog::ArticlesController < ApplicationController

    # Layout
    layout 'phcdevworks_press/frontend'

    # INDEX
    def index
      @phcdevworks_cms_press_index = Article::Post.where(org_id: current_user.org_id, post_status: "published")
    end

    # SHOW
    def show
      @phcdevworks_cms_press_single = Article::Post.friendly.find(params[:id])
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phcdevworks_press-1.1.2 app/controllers/phcdevworks_press/blog/articles_controller.rb