From b60dff4df4bf8802888888472090de1d7c9c8cf3 Mon Sep 17 00:00:00 2001 From: f Date: Wed, 7 Apr 2021 17:47:58 -0300 Subject: [PATCH] renderizar la tabla como texto plano --- app/views/exception_notifier/_data.text.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/exception_notifier/_data.text.erb b/app/views/exception_notifier/_data.text.erb index f2195b9..3493d68 100644 --- a/app/views/exception_notifier/_data.text.erb +++ b/app/views/exception_notifier/_data.text.erb @@ -2,7 +2,9 @@ <% @data.dig(:params, 'errors')&.each do |error| %> # <%= error['type'] %>: <%= error['message'] %> -<%= Terminal::Table.new headings: error['backtrace'].first.keys, rows: error['backtrace'].map(&:values) %> +``` +<%= Terminal::Table.new headings: error['backtrace'].first.keys, rows: error['backtrace'].map(&:values).map(&:strip) %> +``` <% end %>