aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/prototype_helper.rb
diff options
context:
space:
mode:
authorThomas Fuchs <thomas@fesch.at>2006-09-07 14:16:58 +0000
committerThomas Fuchs <thomas@fesch.at>2006-09-07 14:16:58 +0000
commita5df861852db69c8449b1d9a9a15a56a7b09abcb (patch)
tree0b348b04605dd4ce0e7d25645550bc3f8b4ca124 /actionpack/lib/action_view/helpers/prototype_helper.rb
parentcb6309bcc97cc28479b7a0de17766ca5cc654c13 (diff)
downloadrails-a5df861852db69c8449b1d9a9a15a56a7b09abcb.tar.gz
rails-a5df861852db69c8449b1d9a9a15a56a7b09abcb.tar.bz2
rails-a5df861852db69c8449b1d9a9a15a56a7b09abcb.zip
Fix loop_on_multiple_args to work, again (not my day), fixes #6078
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5063 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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)