From 40a60efd28b79a3b511b60791a5048dea0176e3f Mon Sep 17 00:00:00 2001 From: Krystian Date: Thu, 3 Jan 2013 22:46:45 -0500 Subject: [PATCH] Corrected image_tag helper so that supported_extensions doesn't appear in the tag attributes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The modifications to add FastImage support made it that supported_extensions="[.png .jpg .jpeg .bmp .gif]" appeared in the img tag attributes upon building the project. --- .../lib/middleman-more/extensions/automatic_image_sizes.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/middleman-more/lib/middleman-more/extensions/automatic_image_sizes.rb b/middleman-more/lib/middleman-more/extensions/automatic_image_sizes.rb index 82d88493..00f48e03 100644 --- a/middleman-more/lib/middleman-more/extensions/automatic_image_sizes.rb +++ b/middleman-more/lib/middleman-more/extensions/automatic_image_sizes.rb @@ -53,6 +53,8 @@ module Middleman end end end + + params = params.delete_if {|key| key == :supported_extensions } super(path, params) end