mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 20:51:42 +00:00
This commit is contained in:
parent
987e19f565
commit
7f3d87b317
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@ module ActiveStorage
|
||||||
# para que puedan propagarse correctamente a través de todo el
|
# para que puedan propagarse correctamente a través de todo el
|
||||||
# stack.
|
# stack.
|
||||||
def blob_args
|
def blob_args
|
||||||
params.require(:blob).permit(:filename, :byte_size, :checksum, :content_type, metadata: {}).to_h.symbolize_keys.tap do |ba|
|
params.require(:blob).permit(:filename, :byte_size, :checksum, :content_type,
|
||||||
|
metadata: {}).to_h.symbolize_keys.tap do |ba|
|
||||||
ba[:filename] = ba[:filename].unicode_normalize.sub(/\A_+/, '')
|
ba[:filename] = ba[:filename].unicode_normalize.sub(/\A_+/, '')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue