mirror of
https://github.com/github/rails.git
synced 2026-01-28 07:48:00 -05:00
Ruby 1.9 compat: call Proc#binding explicitly. [#623 state:resolved]
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user