diff options
Diffstat (limited to 'railties/lib/generators/rails/app/templates/public/javascripts/jquery.driver.js')
-rw-r--r-- | railties/lib/generators/rails/app/templates/public/javascripts/jquery.driver.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/generators/rails/app/templates/public/javascripts/jquery.driver.js b/railties/lib/generators/rails/app/templates/public/javascripts/jquery.driver.js index 032162b664..46b403161b 100644 --- a/railties/lib/generators/rails/app/templates/public/javascripts/jquery.driver.js +++ b/railties/lib/generators/rails/app/templates/public/javascripts/jquery.driver.js @@ -4,7 +4,7 @@ jQuery(function ($) { var el = $(this), data = [], condition = el.attr('data-condition') ? eval(el.attr('data-condition')) : true, - method = el.attr('method') || el.attr('data-method') || 'POST', + method = el.attr('method') || el.attr('data-method') || 'GET', url = el.attr('action') || el.attr('data-url') || '#', async = el.attr('data-remote-type') === 'synchronous' ? false : true, update = el.attr('data-update-success'), |