From 9fbb1367f98fd5e504e26a14df12c12bc528ca20 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 23 Feb 2011 11:42:50 -0300 Subject: [PATCH] concat's binding param is deprecated in Rails 2.3.5 --- app/helpers/application_helper.rb | 8 ++++---- app/helpers/profile_editor_helper.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 40fce98..a0f78ec 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -97,7 +97,7 @@ module ApplicationHelper text = content_tag('div', button + content_tag('div', content_tag('div', content) + close_button, :class => 'help_message', :id => help_id, :style => 'display: none;'), :class => 'help_box') unless block.nil? - concat(text, block.binding) + concat(text) end text @@ -254,7 +254,7 @@ module ApplicationHelper end def button_bar(options = {}, &block) - concat(content_tag('div', capture(&block) + tag('br', :style => 'clear: left;'), { :class => 'button-bar' }.merge(options)), block.binding) + concat(content_tag('div', capture(&block) + tag('br', :style => 'clear: left;'), { :class => 'button-bar' }.merge(options))) end def partial_for_class(klass) @@ -846,7 +846,7 @@ module ApplicationHelper end if block - concat(result, block.binding) + concat(result) end result @@ -1164,7 +1164,7 @@ module ApplicationHelper wrapper = content_tag(:div, capture(&block), :class => 'comment-balloon-content') (1..8).to_a.reverse.each { |i| wrapper = content_tag(:div, wrapper, :class => "comment-wrapper-#{i}") } classes = options.delete(:class) || options.delete("class") || '' - concat(content_tag('div', wrapper + tag('br', :style => 'clear: both;'), { :class => 'comment-balloon ' + classes.to_s }.merge(options)), block.binding) + concat(content_tag('div', wrapper + tag('br', :style => 'clear: both;'), { :class => 'comment-balloon ' + classes.to_s }.merge(options))) end def display_source_info(page) diff --git a/app/helpers/profile_editor_helper.rb b/app/helpers/profile_editor_helper.rb index a004d88..56c502d 100644 --- a/app/helpers/profile_editor_helper.rb +++ b/app/helpers/profile_editor_helper.rb @@ -138,7 +138,7 @@ module ProfileEditorHelper 'div', capture(&block) + '
 ', :class => 'control-panel'), - block.binding) + ) end def control_panel_button(title, icon, url) -- libgit2 0.21.2