Update application_controller.rb

This commit is contained in:
TianLun Song 2025-01-27 09:14:19 +08:00 committed by GitHub
parent cc74145033
commit 9e666310cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,7 @@ class ApplicationController < ActionController::Base
} }
# 使用 Rails.logger 记录信息both development and production # 使用 Rails.logger 记录信息both development and production
# Rails.logger.info "Browser Info: #{browser_info.to_json}" Rails.logger.info "Browser Info: #{browser_info.to_json}"
# 如果是被拦截的浏览器,记录额外信息 # 如果是被拦截的浏览器,记录额外信息
unless browser_allowed? unless browser_allowed?