From 111fd85ebb969e1545cfa79929d8bf8a527f3468 Mon Sep 17 00:00:00 2001 From: TianLun Song Date: Mon, 27 Jan 2025 09:30:01 +0800 Subject: [PATCH] Update application_controller.rb --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 3ee504d..aab0f94 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,6 +1,7 @@ class ApplicationController < ActionController::Base include SeoConcern # Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has. + before_action :log_browser_info # allow_browser versions: :modern allow_browser versions: :modern, patterns: [ @@ -38,7 +39,6 @@ class ApplicationController < ActionController::Base BROWSER_INFO } before_action :set_locale - before_action :log_browser_info after_action :track_action def log_browser_info