aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorStephen St. Martin <kuprishuz@gmail.com>2010-01-23 11:43:22 -0500
committerStefan Penner <stefan.penner@gmail.com>2010-01-27 12:44:31 -0600
commit27d52e00d90604af845bcfdcc23cf54cd652e3e0 (patch)
tree934e453afdc6b49b8cf38fd02b74a61bbe0514b3 /actionpack
parent95b77e925f22376bd12698a8700259894b94dc57 (diff)
downloadrails-27d52e00d90604af845bcfdcc23cf54cd652e3e0.tar.gz
rails-27d52e00d90604af845bcfdcc23cf54cd652e3e0.tar.bz2
rails-27d52e00d90604af845bcfdcc23cf54cd652e3e0.zip
extract_remote_attributes should be a private method
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/ajax_helper.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/actionpack/lib/action_view/helpers/ajax_helper.rb b/actionpack/lib/action_view/helpers/ajax_helper.rb
index 5de33868e9..68ce755604 100644
--- a/actionpack/lib/action_view/helpers/ajax_helper.rb
+++ b/actionpack/lib/action_view/helpers/ajax_helper.rb
@@ -3,16 +3,6 @@ module ActionView
module AjaxHelper
include UrlHelper
- def extract_remote_attributes!(options)
- attributes = options.delete(:html) || {}
-
- attributes.merge!(extract_update_attributes!(options))
- attributes.merge!(extract_request_attributes!(options))
- attributes["data-js-type"] = options.delete(:js_type) || "remote"
-
- attributes
- end
-
def remote_form_for(record_or_name_or_array, *args, &proc)
options = args.extract_options!
object_name = extract_object_name_for_form!(args, options, record_or_name_or_array)
@@ -119,6 +109,16 @@ module ActionView
private
+ def extract_remote_attributes!(options)
+ attributes = options.delete(:html) || {}
+
+ attributes.merge!(extract_update_attributes!(options))
+ attributes.merge!(extract_request_attributes!(options))
+ attributes["data-js-type"] = options.delete(:js_type) || "remote"
+
+ attributes
+ end
+
def extract_request_attributes!(options)
attributes = {}
attributes["data-method"] = options.delete(:method)