app/controllers/phcscriptcdn/application_controller.rb in phcscriptcdn-51.0.0 vs app/controllers/phcscriptcdn/application_controller.rb in phcscriptcdn-52.0.0

- old
+ new

@@ -1,27 +1,22 @@ module Phcscriptcdn - class ApplicationController < ActionController::Base + class ApplicationController < ActionController::Base - # Security Filters - protect_from_forgery with: :exception - before_action :set_default_locale + # Security Filters + protect_from_forgery with: :exception - # Load Requried Helper Files - helper Phccorehelpers::Engine.helpers - helper Phcmenus::Engine.helpers - helper Phctitleseo::Engine.helpers - helper Phcnotifi::Engine.helpers - helper Phcaccounts::Engine.helpers + # Load Requried Helper Files + helper Phccorehelpers::Engine.helpers + helper Phcmenus::Engine.helpers + helper Phctitleseo::Engine.helpers + helper Phcnotifi::Engine.helpers + helper Phcaccounts::Engine.helpers - # Papertrail Whodunnit Username - def user_for_paper_trail - current_user ? current_user.username : 'Public user' - end + # Papertrail Whodunnit Username + def user_for_paper_trail + current_user ? current_user.username : 'Public user' + end - private + private - def set_default_locale - I18n.default_locale = :en - end - - end + end end