Use ENV.fetch for ffmpeg/ffprobe defaults (#35081)

This commit is contained in:
Matt Jankowski 2025-06-18 05:43:25 -04:00 committed by GitHub
parent aa345c4630
commit aac51707d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true # frozen_string_literal: true
Rails.application.configure do Rails.application.configure do
config.x.ffmpeg_binary = ENV['FFMPEG_BINARY'] || 'ffmpeg' config.x.ffmpeg_binary = ENV.fetch('FFMPEG_BINARY', 'ffmpeg')
config.x.ffprobe_binary = ENV['FFPROBE_BINARY'] || 'ffprobe' config.x.ffprobe_binary = ENV.fetch('FFPROBE_BINARY', 'ffprobe')
end end