Fix `Style/NilLambda` cop in paperclip initializer (#30695)

pull/30711/head
Matt Jankowski 10 months ago committed by GitHub
parent 222ab80557
commit 980034e2e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -72,7 +72,7 @@ if ENV['S3_ENABLED'] == 'true'
}
)
Paperclip::Attachment.default_options[:s3_permissions] = ->(*) { nil } if ENV['S3_PERMISSION'] == ''
Paperclip::Attachment.default_options[:s3_permissions] = ->(*) {} if ENV['S3_PERMISSION'] == ''
if ENV.has_key?('S3_ENDPOINT')
Paperclip::Attachment.default_options[:s3_options].merge!(

Loading…
Cancel
Save