From c6428c8b11d318332f5a8535579706bafcff3060 Mon Sep 17 00:00:00 2001 From: f Date: Wed, 18 Dec 2024 11:39:23 -0300 Subject: [PATCH] chore: rubocop --- .../active_storage/disk_controller_decorator.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/active_storage/disk_controller_decorator.rb b/app/controllers/active_storage/disk_controller_decorator.rb index 50ef2815..3b0bf07b 100644 --- a/app/controllers/active_storage/disk_controller_decorator.rb +++ b/app/controllers/active_storage/disk_controller_decorator.rb @@ -11,7 +11,7 @@ module ActiveStorage # Permitir incrustar archivos subidos (especialmente PDFs) desde # otros sitios. def show - original_show.tap do |s| + original_show.tap do |_s| response.headers.delete 'X-Frame-Options' end end @@ -32,9 +32,9 @@ module ActiveStorage body = Down.download(url, max_size: 111.megabytes) checksum = Digest::MD5.file(body.path).base64digest blob.metadata[:url] = url - blob.update_columns checksum: checksum, byte_size: body.size, metadata: blob.metadata + blob.update_columns checksum:, byte_size: body.size, metadata: blob.metadata rescue StandardError => e - ExceptionNotifier.notify_exception(e, data: { key: token[:key], url: url, site: site.name }) + ExceptionNotifier.notify_exception(e, data: { key: token[:key], url:, site: site.name }) head :content_too_large @@ -45,7 +45,7 @@ module ActiveStorage checksum = token[:checksum] end - named_disk_service(site.name).upload token[:key], body, checksum: checksum + named_disk_service(site.name).upload(token[:key], body, checksum:) site.static_files.attach(blob) else @@ -68,7 +68,7 @@ module ActiveStorage def page_not_found(exception) head :not_found - ExceptionNotifier.notify_exception(exception, data: {params: params.to_hash}) + ExceptionNotifier.notify_exception(exception, data: { params: params.to_hash }) end end end