app/controllers/phcscriptcdnpro/application_controller.rb in phcscriptcdnpro-4.4.1 vs app/controllers/phcscriptcdnpro/application_controller.rb in phcscriptcdnpro-4.5.0
- old
+ new
@@ -1,10 +1,12 @@
module Phcscriptcdnpro
class ApplicationController < ActionController::Base
+ # Load Helpers for PHCPress Widgets
+ before_action :phcpress_recent_posts
+
# Security Filters
- before_action :require_user
protect_from_forgery with: :exception
# Grab Member Information
def get_member_profile_info
@members_profile_info = Member::Profile.find(params[:profile_id])
@@ -35,8 +37,13 @@
# Load Helpers
helper Phctitleseo::Engine.helpers
helper Phcnotifi::Engine.helpers
helper Phcaccountspro::Engine.helpers
+
+ # PHCPress Widget Helpers
+ def phcpress_recent_posts
+ @recent_posts = Articles::Post.all
+ end
end
end