lib/haml/helpers/action_view_mods.rb in haml-1.8.1 vs lib/haml/helpers/action_view_mods.rb in haml-1.8.2

- old
+ new

@@ -29,11 +29,11 @@ end module TextHelper def concat_with_haml(string, binding = nil) if is_haml? - buffer.buffer.concat(string) + haml_buffer.buffer.concat(string) else concat_without_haml(string, binding) end end alias_method :concat_without_haml, :concat @@ -43,11 +43,11 @@ module FormTagHelper def form_tag_with_haml(url_for_options = {}, options = {}, *parameters_for_url, &proc) if is_haml? if block_given? oldproc = proc - proc = bind_proc do |*args| + proc = haml_bind_proc do |*args| concat "\n" tab_up oldproc.call(*args) tab_down end @@ -65,10 +65,10 @@ module FormHelper def form_for_with_haml(object_name, *args, &proc) if block_given? && is_haml? oldproc = proc - proc = bind_proc do |*args| + proc = haml_bind_proc do |*args| tab_up oldproc.call(*args) tab_down end end