Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed annoying warning due to previously using the wrong version of c…

…oncat when binding was optional
  • Loading branch information...
commit e4e679df775755ec4ae770e3a2270ccb0919d7b8 1 parent 0b63b08
@markevans authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/block_helpers.rb
View
6 lib/block_helpers.rb
@@ -20,10 +20,10 @@ def #{method_name}(*args, &block)
renderer.send(:helper=, self)
if renderer.public_methods(false).include? 'display'
body = block ? capture(renderer, &block) : nil
- if method(:concat).arity == 1
- concat renderer.display(body)
- else
+ if method(:concat).arity == 2
concat renderer.display(body), binding
+ else
+ concat renderer.display(body)
end
else
block.call(renderer) if block
Please sign in to comment.
Something went wrong with that request. Please try again.