Merge remote-tracking branch 'upstream/main'

This commit is contained in:
Essem 2024-06-19 21:43:32 -05:00
commit 167a30b2bf
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
300 changed files with 2112 additions and 1550 deletions

View file

@ -5,6 +5,11 @@
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY
).each do |key|
if ENV['SECRET_KEY_BASE_DUMMY']
# Use placeholder value during production env asset compilation
ENV[key] = SecureRandom.hex(64)
end
value = ENV.fetch(key) do
abort <<~MESSAGE

View file

@ -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!(