make mime method static
This commit is contained in:
parent
8874e97608
commit
847377653e
|
@ -40,7 +40,7 @@ module Middleman
|
||||||
end
|
end
|
||||||
|
|
||||||
# Rack helper for adding mime-types during local preview
|
# 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] == ?.
|
ext = ".#{ext}" unless ext.to_s[0] == ?.
|
||||||
Rack::Mime::MIME_TYPES[ext.to_s] = type
|
Rack::Mime::MIME_TYPES[ext.to_s] = type
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue