Sha256: 35c58682f9c1fd8d432c044dfedf1d214c9bc5c2fb832af32f20a2d59db6dc54
Contents?: true
Size: 530 Bytes
Versions: 5
Compression:
Stored size: 530 Bytes
Contents
require 'rack/showexceptions' # Support rack/showexceptions during development module Middleman::CoreExtensions class ShowExceptions < ::Middleman::Extension def initialize(app, options_hash={}, &block) super return if app.config.defines_setting? :show_exceptions app.config.define_setting :show_exceptions, ENV['TEST'] ? false : true, 'Whether to catch and display exceptions' end def ready app.use ::Rack::ShowExceptions if !app.build? && app.config[:show_exceptions] end end end
Version data entries
5 entries across 5 versions & 1 rubygems