diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-26 19:59:22 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-26 19:59:22 -0700 |
commit | 678385d307559b2b5737bb2b07f633d2b9a0802c (patch) | |
tree | 3133565fc3aa341ca7bb4466f55dc0db90e5d18d /actionpack/lib/action_view/helpers/prototype_helper.rb | |
parent | 5cef0cbad2d1df013c74ab96c16cf7fd84040f46 (diff) | |
download | rails-678385d307559b2b5737bb2b07f633d2b9a0802c.tar.gz rails-678385d307559b2b5737bb2b07f633d2b9a0802c.tar.bz2 rails-678385d307559b2b5737bb2b07f633d2b9a0802c.zip |
Use javascript_object_for
Diffstat (limited to 'actionpack/lib/action_view/helpers/prototype_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/prototype_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb index 9cafd17004..a44c144d53 100644 --- a/actionpack/lib/action_view/helpers/prototype_helper.rb +++ b/actionpack/lib/action_view/helpers/prototype_helper.rb @@ -973,7 +973,7 @@ module ActionView 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 |