Sha256: 4db920d226891945934952ade2e0729968f2f36a9e321143ba9f8dd5fc5102ce
Contents?: true
Size: 386 Bytes
Versions: 23
Compression:
Stored size: 386 Bytes
Contents
require 'rack/show_exceptions' # 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
23 entries across 23 versions & 2 rubygems