Refactor some trivial extensions back into application.

This commit is contained in:
Ben Hollis 2013-04-09 22:42:04 -07:00
parent fdd52cd640
commit 283576af1a
7 changed files with 15 additions and 86 deletions

View file

@ -86,9 +86,7 @@ module Middleman
Tilt.mappings.each do |key, klasses|
begin
Tilt[".#{key}"]
rescue LoadError
Tilt.mappings.delete(key)
rescue NameError
rescue LoadError, NameError
Tilt.mappings.delete(key)
end
end