We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1e8b30a + 5d4ca69 commit ebdb98bCopy full SHA for ebdb98b
app/javascript/application.js
@@ -8,7 +8,11 @@ import "startup"
8
import "jquery-ui"
9
import 'admin-lte'
10
import 'filterrific'
11
-import { Turbo } from "@hotwired/turbo-rails"
+import("@hotwired/turbo-rails").then(({ Turbo }) => {
12
+ // Disable turbo by default to avoid issues with turbolinks
13
+ Turbo.session.drive = false
14
+})
15
+
16
import "trix"
17
import "@rails/actiontext"
18
import "bootstrap-select"
@@ -39,9 +43,6 @@ Rails.start()
39
43
import * as ActiveStorage from "@rails/activestorage";
40
44
ActiveStorage.start();
41
45
42
-// Disable turbo by default to avoid issues with turbolinks
-Turbo.session.drive = false
-
46
// Global toastr options
47
window.toastr = toastr;
48
toastr.options = {
0 commit comments