Sha256: 71a3a80b4139c2fb591154c0f150e46f5fd3079b5cc4afc8b537516343843c5d
Contents?: true
Size: 614 Bytes
Versions: 7
Compression:
Stored size: 614 Bytes
Contents
# frozen_string_literal: true require_dependency 'scribo/application_controller' require_dependency 'scribo/action_dispatch/request_drop' module Scribo class ContentsController < ApplicationController protect_from_forgery except: :show def show render scribo: request rescue StandardError => e Scribo.config.logger.error '-' * 80 Scribo.config.logger.error '=> Content rendering errors: ' + e.message Scribo.config.logger.error '=> ' + e.backtrace.map(&:to_s).join("\n") Scribo.config.logger.error '-' * 80 render body: e.message, status: 500 end end end
Version data entries
7 entries across 7 versions & 1 rubygems