diff options
author | Thomas Fuchs <thomas@fesch.at> | 2006-09-07 12:56:48 +0000 |
---|---|---|
committer | Thomas Fuchs <thomas@fesch.at> | 2006-09-07 12:56:48 +0000 |
commit | 984312cf85d40b9fae9e88dfc80ae61f085b36d1 (patch) | |
tree | e55dd932cddb619143d3167450244954e86bc66c | |
parent | 8734da9bca3db5934f0d072feeca0b1724d082a7 (diff) | |
download | rails-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
-rw-r--r-- | actionpack/lib/action_view/helpers/prototype_helper.rb | 8 |
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) |