Sha256: 9199a3a3f25887c2bcd674a45f1cb3dac122d59d09e74bfc4d694e64f0b3a9aa
Contents?: true
Size: 694 Bytes
Versions: 20
Compression:
Stored size: 694 Bytes
Contents
# Require lib require 'rack/showexceptions' # Support rack/showexceptions during development module Middleman module CoreExtensions module ShowExceptions # Setup extension class << self # Once registered def registered(app) # Whether to catch and display exceptions # @return [Boolean] app.config.define_setting :show_exceptions, true, 'Whether to catch and display exceptions' # When in dev app.configure :development do # Include middlemare if config[:show_exceptions] use ::Rack::ShowExceptions end end end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems