aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/prototype_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_view/helpers/prototype_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/prototype_helper.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb
index 29c4da7153..d5e6f039aa 100644
--- a/actionpack/lib/action_view/helpers/prototype_helper.rb
+++ b/actionpack/lib/action_view/helpers/prototype_helper.rb
@@ -639,6 +639,12 @@ module ActionView
end
private
+ def loop_on_multiple_args(method, ids)
+ record(ids.size>1 ?
+ "#{javascript_object_for(ids)}.each(#{method})" :
+ "#{method}(#{ids.first.to_json})")
+ end
+
def page
self
end
@@ -684,12 +690,6 @@ module ActionView
end
protected
- def loop_on_multiple_args(method, ids)
- record(ids.size>1 ?
- "#{javascript_object_for(ids)}.each(#{method})" :
- "#{method}(#{ids.first.to_json})")
- end
-
def options_for_ajax(options)
js_options = build_callbacks(options)