Merge pull request #1068 from basecamp/flavorjones/fix-406

Fix handling of "406 unsupported browser" responses
This commit is contained in:
Mike Dalessio
2025-09-09 17:09:46 -04:00
committed by GitHub
+1 -1
View File
@@ -2,5 +2,5 @@ class ApplicationController < ActionController::Base
include Authentication, CurrentRequest, CurrentTimezone, SetPlatform, TurboFlash, WriterAffinity
stale_when_importmap_changes
allow_browser versions: :modern
allow_browser versions: :modern, block: -> { render "errors/not_acceptable", layout: "error" }
end