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