Skip to content

Commit

Permalink
Ruby 1.9 compat: call Proc#binding explicitly. [#623 state:resolved]
Browse files Browse the repository at this point in the history
  • Loading branch information
松田 明 authored and jeremy committed Jul 15, 2008
1 parent fc89a95 commit bb33432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/tag_helper.rb
Expand Up @@ -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)
Expand Down

0 comments on commit bb33432

Please sign in to comment.