aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorThomas Fuchs <thomas@fesch.at>2006-09-07 12:56:48 +0000
committerThomas Fuchs <thomas@fesch.at>2006-09-07 12:56:48 +0000
commit984312cf85d40b9fae9e88dfc80ae61f085b36d1 (patch)
treee55dd932cddb619143d3167450244954e86bc66c /actionpack
parent8734da9bca3db5934f0d072feeca0b1724d082a7 (diff)
downloadrails-984312cf85d40b9fae9e88dfc80ae61f085b36d1.tar.gz
rails-984312cf85d40b9fae9e88dfc80ae61f085b36d1.tar.bz2
rails-984312cf85d40b9fae9e88dfc80ae61f085b36d1.zip
Fix a warning in prototype_helper_test, fixes #6077
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5061 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/prototype_helper.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb
index b6f811aee1..4318bbac4c 100644
--- a/actionpack/lib/action_view/helpers/prototype_helper.rb
+++ b/actionpack/lib/action_view/helpers/prototype_helper.rb
@@ -685,11 +685,9 @@ module ActionView
protected
def loop_on_multiple_args(method, ids)
- record (if ids.size>1
- "#{javascript_object_for(ids)}.each(#{method})"
- else
- "#{method}(#{ids.first.to_json})"
- end)
+ record (ids.size>1 ?
+ "#{javascript_object_for(ids)}.each(#{method})" :
+ "#{method}(#{ids.first.to_json})")
end
def options_for_ajax(options)