diff options
author | Thomas Fuchs <thomas@fesch.at> | 2006-09-07 14:16:58 +0000 |
---|---|---|
committer | Thomas Fuchs <thomas@fesch.at> | 2006-09-07 14:16:58 +0000 |
commit | a5df861852db69c8449b1d9a9a15a56a7b09abcb (patch) | |
tree | 0b348b04605dd4ce0e7d25645550bc3f8b4ca124 /actionpack/lib | |
parent | cb6309bcc97cc28479b7a0de17766ca5cc654c13 (diff) | |
download | rails-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')
-rw-r--r-- | actionpack/lib/action_view/helpers/prototype_helper.rb | 12 |
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) |