Drop support for ruby 3.1 (#32363)
This commit is contained in:
		@@ -14,8 +14,8 @@ module RoutingHelper
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def full_asset_url(source, **options)
 | 
			
		||||
    source = ActionController::Base.helpers.asset_url(source, **options) unless use_storage?
 | 
			
		||||
  def full_asset_url(source, **)
 | 
			
		||||
    source = ActionController::Base.helpers.asset_url(source, **) unless use_storage?
 | 
			
		||||
 | 
			
		||||
    URI.join(asset_host, source).to_s
 | 
			
		||||
  end
 | 
			
		||||
@@ -24,12 +24,12 @@ module RoutingHelper
 | 
			
		||||
    Rails.configuration.action_controller.asset_host || root_url
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def frontend_asset_path(source, **options)
 | 
			
		||||
    asset_pack_path("media/#{source}", **options)
 | 
			
		||||
  def frontend_asset_path(source, **)
 | 
			
		||||
    asset_pack_path("media/#{source}", **)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def frontend_asset_url(source, **options)
 | 
			
		||||
    full_asset_url(frontend_asset_path(source, **options))
 | 
			
		||||
  def frontend_asset_url(source, **)
 | 
			
		||||
    full_asset_url(frontend_asset_path(source, **))
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def use_storage?
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user