diff --git a/app/models/indexed_post.rb b/app/models/indexed_post.rb index 7f6865f6..7e58b7bc 100644 --- a/app/models/indexed_post.rb +++ b/app/models/indexed_post.rb @@ -36,6 +36,13 @@ class IndexedPost < ApplicationRecord belongs_to :site + # La ubicaciĆ³n del Post en el disco + # + # @return [String] + def full_path + @full_path ||= File.join(site.path, "_#{locale}", "#{path}.markdown") + end + # Convertir locale a direccionario de PG # # @param [String,Symbol]