app/controllers/phcpresspro/blog/posts_controller.rb in phcpresspro-2.1.0 vs app/controllers/phcpresspro/blog/posts_controller.rb in phcpresspro-2.1.1

- old
+ new

@@ -54,9 +54,14 @@ redirect_to blog_posts_path, notice: 'Blog post was successfully destroyed.' end private + # Define Current User + def current_user + @_current_user ||= AuthRocket::Session.from_token(session[:ar_token]).try(:user) + end + # Common Callbacks def set_blog_post @blog_post = Blog::Post.find(params[:id]) end