mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 05:16:21 +00:00
feat: a partir del post indexado obtener la ubicación del archivo
This commit is contained in:
parent
99b20152c6
commit
d601f37045
1 changed files with 7 additions and 0 deletions
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue