Skip to content

Instantly share code, notes, and snippets.

@blangenfeld
Created September 14, 2017 15:29
Show Gist options
  • Save blangenfeld/ea42b8259e9956d7f281888fcf1eee73 to your computer and use it in GitHub Desktop.
Save blangenfeld/ea42b8259e9956d7f281888fcf1eee73 to your computer and use it in GitHub Desktop.
Got tired of deauthorizing connected apps one by one during development.
$('.applications-list li a.button--red').each(function() {
$.post($(this).attr('href'), {
_method: 'delete',
authenticity_token: $('meta[name=csrf-token]').attr('content')
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment