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