Prevent view transition animations on page refreshes

View transitions don't play great with page refreshes as they can make those
very noticeable
This commit is contained in:
Jorge Manrubia
2025-10-14 15:38:35 +02:00
parent 956faaa67d
commit b177f92ec1
3 changed files with 21 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
class ApplicationController < ActionController::Base
include Authentication, Authorization, CurrentRequest, CurrentTimezone, SetPlatform, TurboFlash, WriterAffinity
include Authentication, Authorization, CurrentRequest, CurrentTimezone, SetPlatform, TurboFlash, ViewTransitions, WriterAffinity
stale_when_importmap_changes
allow_browser versions: :modern, block: -> { render "errors/not_acceptable", layout: "error" }