1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Do not change the entire codebase style only because of active_storage

We are already removing the braces around hash parameters in the last
argument in other places so we should not change the entire codebase
because of two places.
This commit is contained in:
Rafael Mendonça França 2017-08-03 17:42:35 -04:00
parent 762c7da783
commit 77be872819
2 changed files with 2 additions and 5 deletions

View file

@ -16,7 +16,6 @@ Style/AndOr:
# method call.
Style/BracesAroundHashParameters:
Enabled: true
EnforcedStyle: context_dependent
# Align `when` with `case`.
Layout/CaseIndentation:

View file

@ -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 =