1import { Turbo } from '@hotwired/turbo-rails'; 2 3export default class TurboInit { 4 // Enables Turbo Drive globally as part of the migration off rails-ujs (#35411). 5 // 6 // Pages that have not been migrated yet opt out with data-turbo="false" on the 7 // <body> in the site layouts, so they keep their existing rails-ujs 8 // behaviour until they are converted one at a time. The site subapp has no 9 // data-confirm usages, so (unlike app/admin) no confirm dialog is wired here. 10 static ready(turbo = Turbo) { 11 turbo.session.drive = true; 12 } 13}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.