mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 20:56:22 +00:00
siempre devolver la ruta completa al archivo
This commit is contained in:
parent
ba16d56679
commit
82e676e161
3 changed files with 8 additions and 1 deletions
|
@ -78,11 +78,14 @@ class MetadataFile < MetadataTemplate
|
||||||
@path ||= Pathname.new value['path']
|
@path ||= Pathname.new value['path']
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Obtiene la ruta absoluta del archivo
|
||||||
|
#
|
||||||
|
# @return [String]
|
||||||
def file
|
def file
|
||||||
if value['path'].is_a? ActionDispatch::Http::UploadedFile
|
if value['path'].is_a? ActionDispatch::Http::UploadedFile
|
||||||
value['path'].tempfile.path
|
value['path'].tempfile.path
|
||||||
else
|
else
|
||||||
value['path']
|
File.join site.path, value['path']
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -439,6 +439,8 @@ en:
|
||||||
locales:
|
locales:
|
||||||
mapable:
|
mapable:
|
||||||
help: You can link to the article's translation by looking up its title here and pressing Add
|
help: You can link to the article's translation by looking up its title here and pressing Add
|
||||||
|
image:
|
||||||
|
label: Imagen
|
||||||
reorder: 'Reorder posts'
|
reorder: 'Reorder posts'
|
||||||
sort:
|
sort:
|
||||||
by: 'Sort by'
|
by: 'Sort by'
|
||||||
|
|
|
@ -448,6 +448,8 @@ es:
|
||||||
locales:
|
locales:
|
||||||
mapable:
|
mapable:
|
||||||
help: Puedes vincular traducciones buscando el título aquí y presionando Agregar
|
help: Puedes vincular traducciones buscando el título aquí y presionando Agregar
|
||||||
|
image:
|
||||||
|
label: Imagen
|
||||||
reorder: 'Reordenar artículos'
|
reorder: 'Reordenar artículos'
|
||||||
sort:
|
sort:
|
||||||
by: 'Ordenar por'
|
by: 'Ordenar por'
|
||||||
|
|
Loading…
Reference in a new issue