mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 02:13:38 +00:00
chore: rubocop
This commit is contained in:
parent
7e43d8f332
commit
6ec9907273
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