lib/haml/helpers/action_view_mods.rb in haml-3.0.13 vs lib/haml/helpers/action_view_mods.rb in haml-3.0.14

- old
+ new

@@ -105,12 +105,12 @@ if block_given? && block_is_haml?(block) && preserve return content_tag_without_haml(name, *args) {preserve(&block)} end - returning content_tag_without_haml(name, *args, &block) do |content| - return Haml::Helpers.preserve(content) if preserve && content - end + content = content_tag_without_haml(name, *args, &block) + content = Haml::Helpers.preserve(content) if preserve && content + content end alias_method :content_tag_without_haml, :content_tag alias_method :content_tag, :content_tag_with_haml end