mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user