app/controllers/phcscriptcdnpro/application_controller.rb in phcscriptcdnpro-20.8.1 vs app/controllers/phcscriptcdnpro/application_controller.rb in phcscriptcdnpro-21.0.0

- old
+ new

@@ -1,14 +1,14 @@ 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 for PHCPress Widgets - before_action :phcpress_recent_posts - # Load Helpers helper Phctitleseo::Engine.helpers helper Phcnotifi::Engine.helpers helper Phcaccountspro::Engine.helpers @@ -41,12 +41,12 @@ current_user ? current_user.username : 'Public user' end private - # PHCPress Widget Helpers - def phcpress_recent_posts - @recent_posts = Phcpresspro::Article::Post.all - end + # PHCPress Widget Helpers + def phcpress_recent_posts + @recent_posts = Phcpresspro::Article::Post.all + end end end