Yea, it's really strange. On Rails 6, changing it remove the jQuery dependency, it doesn't work.
I updated your code to
```
Rails.showConfirmationDialog = function (link) {
const message = link.data('confirm')
return swal.fire(
{
title: message,
type: 'warning',
showCancelButton: true,
reverseButtons: true
}
).then(function (result) {
if (result.value) { return Rails.confirmed(link) }
})
}
```
and the javascript alert fires, but the SweetAlert doesn't. It has to be something with the `showConfirmationDialog` not getting set or fired properly.