mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 16:21:41 +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
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue