Update application_controller.rb

This commit is contained in:
TianLun Song 2025-01-27 09:30:01 +08:00 committed by GitHub
parent 59a3f792c6
commit 111fd85ebb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
class ApplicationController < ActionController::Base class ApplicationController < ActionController::Base
include SeoConcern include SeoConcern
# Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has. # 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
allow_browser versions: :modern, allow_browser versions: :modern,
patterns: [ patterns: [
@ -38,7 +39,6 @@ class ApplicationController < ActionController::Base
BROWSER_INFO BROWSER_INFO
} }
before_action :set_locale before_action :set_locale
before_action :log_browser_info
after_action :track_action after_action :track_action
def log_browser_info def log_browser_info