0
0
Fork 0

Fix Rails/Present cop (#24688)

This commit is contained in:
Matt Jankowski 2023-04-30 00:47:50 -04:00 committed by GitHub
parent bdc74086e6
commit 5a2aa06a51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View file

@ -3,7 +3,7 @@
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
def host_to_url(str)
"http#{Rails.configuration.x.use_https ? 's' : ''}://#{str}" unless str.blank?
"http#{Rails.configuration.x.use_https ? 's' : ''}://#{str}" if str.present?
end
base_host = Rails.configuration.x.web_domain