Permalink
Browse files

do not support 'data-url' anymore, just use 'href' [#4236 state:resol…

…ved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 8b50f89 commit 0137566c8585a8973479a1e4586ae26b6c7ee793 @smartinez87 smartinez87 committed with josevalim Mar 19, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 railties/lib/generators/rails/app/templates/public/javascripts/rails.js
@@ -15,8 +15,7 @@ document.observe("dom:loaded", function() {
params = element.serialize(true);
} else {
method = element.readAttribute('data-method') || 'get';
- // TODO: data-url support is going away, just use href
- url = element.readAttribute('data-url') || element.readAttribute('href');
+ url = element.readAttribute('href');
params = {};
}

0 comments on commit 0137566

Please sign in to comment.