From 43ba7d78f0de49d569ca9187274c3667509cc1b2 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 26 Oct 2023 18:06:43 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20notificar=20la=20excepci=C3=B3n=20correc?= =?UTF-8?q?tamente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 6e5195ca90490cf18fbf6457d4da70336aded108) --- app/models/post.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/post.rb b/app/models/post.rb index ab91bd43..84f18386 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -30,6 +30,10 @@ class Post # a demanda? def find_layout(path) File.foreach(path).lazy.grep(/^layout: /).take(1).first&.split(' ')&.last&.tr('\'', '')&.tr('"', '')&.to_sym + rescue Errno::ENOENT => e + ExceptionNotifier.notify_exception(e, data: { path: path }) + + :post end # Genera un Post nuevo