app/controllers/phcscriptcdnpro/application_controller.rb in phcscriptcdnpro-24.0.0 vs app/controllers/phcscriptcdnpro/application_controller.rb in phcscriptcdnpro-24.1.0

- old
+ new

@@ -1,11 +1,8 @@ module Phcscriptcdnpro class ApplicationController < ActionController::Base - # Load Helpers for PHCPress Widgets - before_action :phcpress_recent_posts - # Security Filters protect_from_forgery with: :exception # Load Helpers helper Phctitleseo::Engine.helpers @@ -40,13 +37,8 @@ # Default is: current_user rescue nil current_user ? current_user.username : 'Public user' end private - - # PHCPress Widget Helpers - def phcpress_recent_posts - @recent_posts = Phcpresspro::Article::Post.all - end end end