From 4ecadd8734c7a23d8a984354cd7405efaaed23bd 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 78a45f3f..58e52f71 100644 --- a/middleman-more/lib/middleman-more/extensions/automatic_image_sizes.rb +++ b/middleman-more/lib/middleman-more/extensions/automatic_image_sizes.rb @@ -51,6 +51,8 @@ module Middleman end end end + + params = params.delete_if {|key| key == :supported_extensions } super(path, params) end