From 4ea91dd4893217085002b179657e6c0b5689e477 Mon Sep 17 00:00:00 2001 From: Mattias Bodlund Date: Tue, 30 Apr 2024 14:18:33 +0200 Subject: [PATCH] na --- app/controllers/application_controller.rb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index d684e02..601c594 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,15 +1,17 @@ class ApplicationController < ActionController::Base + http_basic_authenticate_with name: "stupid", password: "studio", except: Rails.env.development? + private -def set_locale - I18n.locale = params[:locale]&.to_sym.presence_in(I18n.available_locales) || I18n.default_locale -end + def set_locale + I18n.locale = params[:locale]&.to_sym.presence_in(I18n.available_locales) || I18n.default_locale + end -def not_found - raise ActionController::RoutingError.new('Not Found') -end + def not_found + raise ActionController::RoutingError.new('Not Found') + end end