Ruby 1.9 compat: toplevel AS reference within BasicObject

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9195 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2008-04-01 07:39:14 +00:00
parent 30fa377f33
commit 41ac6c553f

@ -1204,7 +1204,7 @@ def zip(variable, *arguments, &block)
append_enumerable_function!("zip(#{arguments_for_call arguments}")
if block
function_chain[-1] += ", function(array) {"
yield ActiveSupport::JSON::Variable.new('array')
yield ::ActiveSupport::JSON::Variable.new('array')
add_return_statement!
@generator << '});'
else