We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb13c9d commit 7a4c6f4Copy full SHA for 7a4c6f4
src/rails.js
@@ -378,7 +378,7 @@
378
// making sure that all forms have actual up-to-date token(cached forms contain old one)
379
csrf_token = $('meta[name=csrf-token]').attr('content');
380
csrf_param = $('meta[name=csrf-param]').attr('content');
381
- $('form input[name='+csrf_param+']').val(csrf_token);
+ $('form input[name="' + csrf_param + '"]').val(csrf_token);
382
});
383
384
})( jQuery );
0 commit comments