5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 21:56:22 +00:00

feat: a partir del post indexado obtener la ubicación del archivo

This commit is contained in:
f 2023-10-06 09:54:25 -03:00
parent 99b20152c6
commit d601f37045
No known key found for this signature in database

View file

@ -36,6 +36,13 @@ class IndexedPost < ApplicationRecord
belongs_to :site 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 # Convertir locale a direccionario de PG
# #
# @param [String,Symbol] # @param [String,Symbol]