app/controllers/phcpress/article/posts_controller.rb in phcpress-42.0.0 vs app/controllers/phcpress/article/posts_controller.rb in phcpress-43.0.0
- old
+ new
@@ -1,10 +1,11 @@
require_dependency "phcpress/application_controller"
module Phcpress
class Article::PostsController < ApplicationController
- # Filters & Security
+ # Security & Action Filters
+ before_action :authenticate_user!
before_action :set_article_post, only: [:show, :edit, :update, :destroy]
# Article Index
def index
@article_posts = Article::Post.all