aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/ajax_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_view/helpers/ajax_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/ajax_helper.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/ajax_helper.rb b/actionpack/lib/action_view/helpers/ajax_helper.rb
index 9c1d6a722d..550f7fbbe2 100644
--- a/actionpack/lib/action_view/helpers/ajax_helper.rb
+++ b/actionpack/lib/action_view/helpers/ajax_helper.rb
@@ -1,7 +1,9 @@
module ActionView
module Helpers
module AjaxHelper
- include PrototypeHelper
+ # Included for backwards compatibility / RJS functionality
+ # Rails classes should not be aware of individual JS frameworks
+ include PrototypeHelper
def remote_form_for(record_or_name_or_array, *args, &proc)
options = args.extract_options!
@@ -19,6 +21,7 @@ module ActionView
attributes.merge!(options)
url = attributes.delete("data-url")
+ attributes.delete(:builder)
form_tag(attributes.delete(:action) || url, attributes, &block)
end