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:
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
|
||||
|
Loading…
Reference in New Issue
Block a user