Skip to content

Commit

Permalink
just try
Browse files Browse the repository at this point in the history
  • Loading branch information
ilpeste committed Jul 19, 2012
1 parent 0ee62d9 commit 76c7473
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/twitter-bootstrap-markup-rails/helper_collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ def to_s
args << @options

if @block
@view.send(@method, *args, &@block).html_safe
output = @view.send(@method, *args, &@block)
else
@view.send(@method, *args).html_safe
output = @view.send(@method, *args)
end

output.blank? ? nil : output.html
end

end
Expand Down

0 comments on commit 76c7473

Please sign in to comment.