chore: fix ActiveStorage::Current.host deprecation warning
This commit is contained in:
parent
8326cf080e
commit
25dfbe5085
2 changed files with 3 additions and 2 deletions
|
@ -177,7 +177,8 @@ class ApplicationController < ActionController::Base
|
|||
private
|
||||
|
||||
def set_active_storage_host
|
||||
ActiveStorage::Current.host = request.base_url
|
||||
ActiveStorage::Current.url_options ||= {}
|
||||
ActiveStorage::Current.url_options[:host] = request.base_url
|
||||
end
|
||||
|
||||
def setup_javascript_settings
|
||||
|
|
|
@ -86,7 +86,7 @@ RSpec.configure do |config|
|
|||
|
||||
ActionMailer::Base.deliveries.clear
|
||||
|
||||
ActiveStorage::Current.host = 'http://test.host'
|
||||
ActiveStorage::Current.url_options = { host: 'http://test.host' }
|
||||
|
||||
Geocoder.configure(lookup: :test)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue