diff --git a/app/models/indexed_post.rb b/app/models/indexed_post.rb index ef239a7d..02679ec0 100644 --- a/app/models/indexed_post.rb +++ b/app/models/indexed_post.rb @@ -87,6 +87,13 @@ class IndexedPost < ApplicationRecord site.layouts[layout.to_sym] end + # Existe físicamente? + # + # @return [Boolean] + def exist? + File.exist?(full_path) + end + # Convertir locale a direccionario de PG # # @param [String,Symbol]