5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 18:31:41 +00:00

chore: rubocop
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2024-01-11 17:29:32 -03:00
parent 987e19f565
commit 7f3d87b317
No known key found for this signature in database

View file

@ -18,7 +18,8 @@ module ActiveStorage
# para que puedan propagarse correctamente a través de todo el
# stack.
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_+/, '')
end
end