middleman/middleman-core/lib/middleman-core/core_extensions/show_exceptions.rb

15 lines
320 B
Ruby
Raw Normal View History

2012-01-14 21:18:39 +01:00
# Support rack/showexceptions during development
2014-06-07 00:32:00 +02:00
module Middleman::CoreExtensions
class ShowExceptions < ::Middleman::Extension
def initialize(app, options_hash={}, &block)
super
2014-06-07 00:32:00 +02:00
require 'rack/showexceptions'
end
2014-06-07 00:32:00 +02:00
def after_configuration
app.use ::Rack::ShowExceptions
end
end
end