summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorCharlie Root <root@web.ccc.local>2025-01-28 22:47:15 +0100
committerCharlie Root <root@web.ccc.local>2025-01-28 22:47:15 +0100
commitc4296b59a7f9d667d295f9c37b71f7849b818fb3 (patch)
treeccbace3a183c075991a0dfeb1dd9e6f25e901cf3 /app/controllers/application_controller.rb
parentdfbaadf0210b02a8bb54380c2c50302413dcf6d6 (diff)
Big overhaul patch and style changes
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index bce0c71..89cd330 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -2,20 +2,20 @@
2# Likewise, all the methods added will be available for all controllers. 2# Likewise, all the methods added will be available for all controllers.
3 3
4class ApplicationController < ActionController::Base 4class ApplicationController < ActionController::Base
5 5
6 include ExceptionNotifiable 6 include ExceptionNotifiable
7 include AuthenticatedSystem 7 include AuthenticatedSystem
8 8
9 helper :all # include all helpers, all the time 9 helper :all # include all helpers, all the time
10 protect_from_forgery # See ActionController::RequestForgeryProtection for details 10 protect_from_forgery # See ActionController::RequestForgeryProtection for details
11 11
12 # Scrub sensitive parameters from your log 12 # Scrub sensitive parameters from your log
13 filter_parameter_logging :password, :password_confirmation 13 filter_parameter_logging :password, :password_confirmation
14 14
15 before_filter :set_locale 15 before_filter :set_locale
16 16
17 protected 17 protected
18 18
19 def set_locale 19 def set_locale
20 if params[:locale] && I18n.available_locales.include?(params[:locale].to_sym) 20 if params[:locale] && I18n.available_locales.include?(params[:locale].to_sym)
21 I18n.locale = params[:locale].to_sym 21 I18n.locale = params[:locale].to_sym