Merge pull request #7499 from betagouv/US/fix-rails-ujs

fix(Rails.ujs): missing Rails.start
This commit is contained in:
mfo 2022-06-27 14:12:27 +02:00 committed by GitHub
commit 48101d02e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,6 +60,9 @@ const DS = {
// Start Rails helpers
ActiveStorage.start();
if (!window._rails_loaded) {
Rails.start();
}
Turbo.session.drive = false;
// Expose globals