From cd1c678f60a272303727c90c4d0170369badd8c5 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 16 Oct 2018 19:46:14 -0300 Subject: [PATCH] inspeccionar para que no se pongan pesados los tracebacks --- app/models/post.rb | 4 ++++ app/models/site.rb | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app/models/post.rb b/app/models/post.rb index 2141e6a..57a07a8 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -27,6 +27,10 @@ class Post :layout, :permalink, :dir, { lang: {} }, { tags: [] }, { categories: [] }] + def inspect + "#" + end + # Trabajar con posts. Si estamos creando uno nuevo, el **site** y # el **front_matter** son necesarios, sino, **site** y **post**. # XXX chequear que se den las condiciones diff --git a/app/models/site.rb b/app/models/site.rb index aaa88e0..85b9e25 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -5,6 +5,10 @@ class Site attr_accessor :jekyll, :collections attr_reader :path + def inspect + "#" + end + def initialize(jekyll:, path: nil) @jekyll = jekyll @path = path || @jekyll.config['source']