diff --git a/src/rails.js b/src/rails.js index ae4355c0..c0f45238 100644 --- a/src/rails.js +++ b/src/rails.js @@ -371,7 +371,7 @@ } return false; - } else if (link.data('method')) { + } else if (method) { rails.handleMethod(link); return false; }