module ActionDispatch::Routing::UrlFor

def full_url_for(options = nil) # :nodoc:

:nodoc:
def full_url_for(options = nil) # :nodoc:
  case options
  when nil
    _routes.url_for(url_options.symbolize_keys)
  when Hash, ActionController::Parameters
    route_name = options.delete :use_route
    merged_url_options = options.to_h.symbolize_keys.reverse_merge!(url_options)
    _routes.url_for(merged_url_options, route_name)
  when String
    options
  when Symbol
    HelperMethodBuilder.url.handle_string_call self, options
  when Array
    components = options.dup
    polymorphic_url(components, components.extract_options!)
  when Class
    HelperMethodBuilder.url.handle_class_call self, options
  else
    HelperMethodBuilder.url.handle_model_call self, options
  end
end