public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Ruby 1.9 compat: call Proc#binding explicitly.  [#623 state:resolved]
松田 明 (author)
Tue Jul 15 05:30:20 -0700 2008
jeremy (committer)
Tue Jul 15 10:39:02 -0700 2008
commit  bb33432b0f5bf644713e696e4dafc7e7d3cc5808
tree    bb07d0fe698f1ed812bd9fd1408b783ee6259178
parent  fc89a951933638b051bb1f9e1339ee6ae7c94cda
...
115
116
117
118
 
119
120
121
...
115
116
117
 
118
119
120
121
0
@@ -115,7 +115,7 @@ module ActionView
0
         # can't take an <% end %> later on, so we have to use <% ... %>
0
         # and implicitly concat.
0
         def block_called_from_erb?(block)
0
-          block && eval(BLOCK_CALLED_FROM_ERB, block)
0
+          block && eval(BLOCK_CALLED_FROM_ERB, block.binding)
0
         end
0
 
0
         def content_tag_string(name, content, options, escape = true)

Comments