Ruby 1.9 compat: call Proc#binding explicitly. [#623 state:resolved]

This commit is contained in:
松田 明
2008-07-15 21:30:20 +09:00
committed by Jeremy Kemper
parent fc89a95193
commit bb33432b0f

View File

@@ -115,7 +115,7 @@ module ActionView
# can't take an <% end %> later on, so we have to use <% ... %>
# and implicitly concat.
def block_called_from_erb?(block)
block && eval(BLOCK_CALLED_FROM_ERB, block)
block && eval(BLOCK_CALLED_FROM_ERB, block.binding)
end
def content_tag_string(name, content, options, escape = true)