make mime method static

This commit is contained in:
tdreyno 2009-10-07 11:20:22 -07:00
parent 8874e97608
commit 847377653e

View file

@ -40,7 +40,7 @@ module Middleman
end
# Rack helper for adding mime-types during local preview
def mime(ext, type)
def self.mime(ext, type)
ext = ".#{ext}" unless ext.to_s[0] == ?.
Rack::Mime::MIME_TYPES[ext.to_s] = type
end