aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.rubocop.yml1
-rw-r--r--activestorage/lib/active_storage/service/disk_service.rb6
2 files changed, 2 insertions, 5 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index cec4fcc71a..2889acfdd1 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -16,7 +16,6 @@ Style/AndOr:
# method call.
Style/BracesAroundHashParameters:
Enabled: true
- EnforcedStyle: context_dependent
# Align `when` with `case`.
Layout/CaseIndentation:
diff --git a/activestorage/lib/active_storage/service/disk_service.rb b/activestorage/lib/active_storage/service/disk_service.rb
index c75c1caabe..35b0909297 100644
--- a/activestorage/lib/active_storage/service/disk_service.rb
+++ b/activestorage/lib/active_storage/service/disk_service.rb
@@ -81,10 +81,8 @@ class ActiveStorage::Service::DiskService < ActiveStorage::Service
content_length: content_length,
checksum: checksum
},
- {
- expires_in: expires_in,
- purpose: :blob_token
- }
+ expires_in: expires_in,
+ purpose: :blob_token
)
generated_url =