diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb index 4318bbac4ce8d..29c4da715377e 100644 --- a/actionpack/lib/action_view/helpers/prototype_helper.rb +++ b/actionpack/lib/action_view/helpers/prototype_helper.rb @@ -685,7 +685,7 @@ def update_page_tag(&block) protected def loop_on_multiple_args(method, ids) - record (ids.size>1 ? + record(ids.size>1 ? "#{javascript_object_for(ids)}.each(#{method})" : "#{method}(#{ids.first.to_json})") end