Permalink
Browse files

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

  • Loading branch information...
1 parent fc89a95 commit bb33432b0f5bf644713e696e4dafc7e7d3cc5808 松田 明 committed with jeremy Jul 15, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/tag_helper.rb
@@ -115,7 +115,7 @@ def escape_once(html)
# 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)

0 comments on commit bb33432

Please sign in to comment.