app/controllers/phcpress/blog/posts_controller.rb in phcpress-3.8.1 vs app/controllers/phcpress/blog/posts_controller.rb in phcpress-3.8.5
- old
+ new
@@ -5,11 +5,10 @@
module Phcpress
class Blog::PostsController < ApplicationController
# Filters & Security
layout 'layouts/phcpress/blogpost/blog_layout'
- before_action :authenticate_user!
- before_action :current_user
+ before_action :authenticate_user!, if: -> { defined?(Devise) }
before_action :set_blog_post, only: [:edit, :update, :destroy]
# Blog Post Index (/blog/posts)
def index
@blog_posts = Blog::Post.all