diff options
| -rw-r--r-- | app/controllers/application_controller.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index b481317..3ee43d4 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb | |||
| @@ -9,4 +9,12 @@ class ApplicationController < ActionController::Base | |||
| 9 | 9 | ||
| 10 | # Scrub sensitive parameters from your log | 10 | # Scrub sensitive parameters from your log |
| 11 | filter_parameter_logging :password, :password_confirmation | 11 | filter_parameter_logging :password, :password_confirmation |
| 12 | |||
| 13 | before_filter :set_locale | ||
| 14 | |||
| 15 | protected | ||
| 16 | |||
| 17 | def set_locale | ||
| 18 | I18n.locale = params[:locale] || :en | ||
| 19 | end | ||
| 12 | end | 20 | end |
