Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const handleConfirm = function(element) { if (!allowAction(this)) { Rails.stopEverything(element) } }
Ruby on Rails unobtrusive scripting adapter