aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/tag_helper.rb
diff options
context:
space:
mode:
author松田 明 <matsuda@tatsujin.tafc.co.jp>2008-07-15 21:30:20 +0900
committerJeremy Kemper <jeremy@bitsweat.net>2008-07-15 10:39:02 -0700
commitbb33432b0f5bf644713e696e4dafc7e7d3cc5808 (patch)
treebb07d0fe698f1ed812bd9fd1408b783ee6259178 /actionpack/lib/action_view/helpers/tag_helper.rb
parentfc89a951933638b051bb1f9e1339ee6ae7c94cda (diff)
downloadrails-bb33432b0f5bf644713e696e4dafc7e7d3cc5808.tar.gz
rails-bb33432b0f5bf644713e696e4dafc7e7d3cc5808.tar.bz2
rails-bb33432b0f5bf644713e696e4dafc7e7d3cc5808.zip
Ruby 1.9 compat: call Proc#binding explicitly. [#623 state:resolved]
Diffstat (limited to 'actionpack/lib/action_view/helpers/tag_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/tag_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/tag_helper.rb b/actionpack/lib/action_view/helpers/tag_helper.rb
index aeafd3906d..e9b6dd6e43 100644
--- a/actionpack/lib/action_view/helpers/tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/tag_helper.rb
@@ -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)