5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-05-19 05:30:48 +00:00

chore: rubocop

This commit is contained in:
f 2024-01-11 17:29:32 -03:00
parent 7e43d8f332
commit 6ec9907273
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