app/controllers/tramway/admin/application_controller.rb in tramway-admin-1.9 vs app/controllers/tramway/admin/application_controller.rb in tramway-admin-1.9.0.1

- old
+ new

@@ -33,18 +33,10 @@ if ::Tramway::Core.application @application = Tramway::Core.application&.model_class&.first || Tramway::Core.application end end - EXCEPTIONS = [ - ActionController::RoutingError, - ActionView::MissingTemplate, - ActiveRecord::RecordNotFound, - NoMethodError, - ActionView::Template::Error - ] - - rescue_from(*EXCEPTIONS) do |exception| + rescue_from StandardError do |exception| Rails.logger.warn "ERROR MESSAGE: #{exception.message}" Rails.logger.warn "BACKTRACE: #{exception.backtrace.first(30).join("\n")}" @exception = exception render 'tramway/admin/shared/errors/server_error', status: 500, layout: false end