mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-27 00:46:22 +00:00
Merge branch 'jekyll-service' into panel.sutty.nl
This commit is contained in:
commit
f067a8672a
1 changed files with 7 additions and 0 deletions
|
@ -121,6 +121,13 @@ class MetadataFile < MetadataTemplate
|
||||||
# @return [Pathname]
|
# @return [Pathname]
|
||||||
def destination_path_with_filename
|
def destination_path_with_filename
|
||||||
destination_path.realpath
|
destination_path.realpath
|
||||||
|
# Si el archivo no llegara a existir, en lugar de hacer fallar todo,
|
||||||
|
# devolvemos la ruta original, que puede ser el archivo que no existe
|
||||||
|
# o vacía si se está subiendo uno.
|
||||||
|
rescue Errno::ENOENT => e
|
||||||
|
ExceptionNotifier.notify_exception(e)
|
||||||
|
|
||||||
|
value['path']
|
||||||
end
|
end
|
||||||
|
|
||||||
def relative_destination_path_with_filename
|
def relative_destination_path_with_filename
|
||||||
|
|
Loading…
Reference in a new issue