middleman/middleman-core/lib/middleman-core/core_extensions/show_exceptions.rb
2011-12-29 15:09:51 -08:00

17 lines
346 B
Ruby

require 'rack/showexceptions'
module Middleman::CoreExtensions::ShowExceptions
class << self
def registered(app)
app.configure :development do
if show_exceptions
use ::Middleman::CoreExtensions::ShowExceptions::Middleware
end
end
end
end
class Middleware < ::Rack::ShowExceptions
end
end