Sha256: b9216df2514e83ea8489458013bf10babcd3184882a946c28dce8f58d4eeee90
Contents?: true
Size: 526 Bytes
Versions: 20
Compression:
Stored size: 526 Bytes
Contents
# This patch enables the exception handler to catch routing errors module ActionDispatch class ShowExceptions private def render_exception_with_template(env, exception) if(RailsExceptionHandler.configuration.environments.include?(Rails.env.to_sym)) RailsExceptionHandler::Handler.new(env, exception).handle_exception else raise "RailsExceptionHandler: This patch should not have been loaded" end end alias_method_chain :render_exception, :template end end
Version data entries
20 entries across 20 versions & 1 rubygems