Sha256: f033c6f2b8c6ce688a0af9473062515479808f85fd242c4194b8ebedc2fc3edd
Contents?: true
Size: 385 Bytes
Versions: 18
Compression:
Stored size: 385 Bytes
Contents
require 'rack/showexceptions' # Support rack/showexceptions during development module Middleman::CoreExtensions class ShowExceptions < ::Middleman::Extension define_setting :show_exceptions, ENV['TEST'] ? false : true, 'Whether to catch and display exceptions' def ready app.use ::Rack::ShowExceptions if !app.build? && app.config[:show_exceptions] end end end
Version data entries
18 entries across 18 versions & 2 rubygems