mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 17:36:22 +00:00
fixup! obtener el nombre de archivo desde la key
This commit is contained in:
parent
6c9288b03b
commit
f7d8a3ecf9
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ module ActiveStorage
|
|||
# @param :key [String]
|
||||
# @return [String]
|
||||
def filename_for(key)
|
||||
@filename_for ||= ActiveStorage::Blob.where(key: key).limit(1).pluck(:filename).first
|
||||
ActiveStorage::Blob.where(key: key).limit(1).pluck(:filename).first
|
||||
end
|
||||
|
||||
# Crea una ruta para la llave con un nombre conocido.
|
||||
|
|
Loading…
Reference in a new issue