Permalink
Browse files

Use javascript_object_for

  • Loading branch information...
1 parent 5cef0cb commit 678385d307559b2b5737bb2b07f633d2b9a0802c @jeremy jeremy committed Apr 27, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/prototype_helper.rb
@@ -973,7 +973,7 @@ def drop_receiving(id, options = {})
def loop_on_multiple_args(method, ids)
record(ids.size>1 ?
"#{javascript_object_for(ids)}.each(#{method})" :
- "#{method}(#{::ActiveSupport::JSON.encode(ids.first)})")
+ "#{method}(#{javascript_object_for(ids.first)})")
end
def page

0 comments on commit 678385d

Please sign in to comment.