diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2010-03-19 15:21:13 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-03-21 19:31:54 +0100 |
commit | 0137566c8585a8973479a1e4586ae26b6c7ee793 (patch) | |
tree | 749cf279b8266e31936473bf7f832bd72c71425b /railties/lib | |
parent | 8b50f89ba7076a62595d040f1512859c287c2d5c (diff) | |
download | rails-0137566c8585a8973479a1e4586ae26b6c7ee793.tar.gz rails-0137566c8585a8973479a1e4586ae26b6c7ee793.tar.bz2 rails-0137566c8585a8973479a1e4586ae26b6c7ee793.zip |
do not support 'data-url' anymore, just use 'href' [#4236 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/generators/rails/app/templates/public/javascripts/rails.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/generators/rails/app/templates/public/javascripts/rails.js b/railties/lib/generators/rails/app/templates/public/javascripts/rails.js index f7ddba390a..7342e1b830 100644 --- a/railties/lib/generators/rails/app/templates/public/javascripts/rails.js +++ b/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 = {}; } |