app/javascript/turbo/index.js in turbo-rails-2.0.0.pre.beta.1 vs app/javascript/turbo/index.js in turbo-rails-2.0.0.pre.beta.2
- old
+ new
@@ -6,6 +6,8 @@
import * as cable from "./cable"
export { cable }
import { encodeMethodIntoRequestBody } from "./fetch_requests"
+window.Turbo = Turbo
+
addEventListener("turbo:before-fetch-request", encodeMethodIntoRequestBody)