app/controllers/phccodesnipper/application_controller.rb in phccodesnipper-6.1.0 vs app/controllers/phccodesnipper/application_controller.rb in phccodesnipper-6.1.1

- old
+ new

@@ -1,21 +1,19 @@ +# frozen_string_literal: true + module Phccodesnipper - class ApplicationController < ActionController::Base + class ApplicationController < ActionController::Base + # Security Filters + protect_from_forgery with: :exception - # Security Filters - protect_from_forgery with: :exception + # Load Requried Helper Files + helper PhcdevworksActiveMenus::Engine.helpers + helper PhcdevworksNotifications::Engine.helpers + helper PhcdevworksTitleseo::Engine.helpers + helper PhcdevworksCore::Engine.helpers - # Load Requried Helper Files - helper PhcdevworksActiveMenus::Engine.helpers - helper PhcdevworksNotifications::Engine.helpers - helper PhcdevworksTitleseo::Engine.helpers - helper PhcdevworksCore::Engine.helpers - - # Papertrail Whodunnit Username - def user_for_paper_trail - current_user ? current_user.username : 'Public user' - end - - private - - end + # Papertrail Whodunnit Username + def user_for_paper_trail + current_user ? current_user.username : 'Public user' + end + end end