Skip to content

Commit

Permalink
Merge pull request #393 from KODerFunk/patch-1
Browse files Browse the repository at this point in the history
Small optimization
  • Loading branch information
rafaelfranca committed Oct 15, 2014
2 parents c1fcef5 + 57f4848 commit dca8042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rails.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@
}
return false;

} else if (link.data('method')) {
} else if (method) {
rails.handleMethod(link);
return false;
}
Expand Down

0 comments on commit dca8042

Please sign in to comment.